.gallery { background: var(--cream); }
.gallery-heading { display: grid; grid-template-columns: 1fr .65fr; align-items: end; gap: 60px; margin-bottom: 38px; }
.gallery-heading h2 { font-size: clamp(38px, 5vw, 58px); line-height: 1.08; margin: 14px 0 0; }
.gallery-heading > p { color: #755a60; }
.gallery-grid, .all-gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 210px; gap: 14px; }
.gallery-item { grid-column: span 4; border: 0; padding: 0; background: #ecdde1; cursor: zoom-in; overflow: hidden; }
.gallery-item:nth-child(5n+1), .gallery-item:nth-child(5n+5) { grid-column: span 6; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.gallery-item:hover img { transform: scale(1.035); }
.gallery-more-wrap { display: flex; justify-content: center; margin-top: 34px; }
.gallery-more { border: 1px solid var(--burgundy); border-radius: 30px; padding: 12px 22px; background: transparent; color: var(--burgundy); font: 700 14px "DM Sans",sans-serif; cursor: pointer; }
.gallery-more span { margin-left: 14px; }
.gallery-more:hover { background: var(--burgundy); color: #fff; }
.gallery-modal, .all-gallery-modal { border: 0; color: var(--ink); }
.gallery-modal::backdrop, .all-gallery-modal::backdrop { background: #32131be6; }
.gallery-modal { width: min(1100px, calc(100% - 30px)); max-height: 94vh; padding: 12px; background: #f4f4f2; overflow: visible; }
.gallery-modal img { display: block; width: 100%; height: min(82vh, 760px); object-fit: contain; }
.gallery-close, .all-gallery-close { border: 0; border-radius: 50%; background: #fff; color: var(--ink); font-size: 30px; line-height: 1; cursor: pointer; box-shadow: 0 3px 15px #0004; }
.gallery-close { position: absolute; z-index: 2; right: 20px; top: 20px; width: 42px; height: 42px; }
.gallery-arrow { position: absolute; z-index: 2; top: 50%; width: 48px; height: 58px; border: 0; border-radius: 8px; background: #fffffff0; color: var(--burgundy); font: 48px/1 Georgia,serif; cursor: pointer; box-shadow: 0 4px 18px #0003; transform: translateY(-50%); }
.gallery-prev { left: 24px; }
.gallery-next { right: 24px; }
.all-gallery-modal { width: min(1160px, calc(100% - 30px)); max-height: 92vh; padding: 32px; background: var(--cream); }
.all-gallery-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.all-gallery-header h2 { font-size: clamp(34px, 4vw, 50px); line-height: 1.05; margin: 10px 0 0; }
.all-gallery-close { flex: 0 0 auto; width: 42px; height: 42px; }
.all-gallery-grid { grid-auto-rows: 170px; }
.whatsapp-button { position: fixed; right: 24px; bottom: 24px; z-index: 30; display: flex; align-items: center; gap: 12px; text-decoration: none; }
.whatsapp-button[hidden] { display: none; }
.whatsapp-icon { order: 2; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: #900018; box-shadow: 0 8px 25px #32131b45; transition: transform .2s; }
.whatsapp-icon svg { width: 39px; height: 39px; }
.wa-bubble { fill: #fff; }
.wa-phone { fill: #900018; }
.whatsapp-bubble { position: relative; padding: 12px 16px; background: #fff; color: #580f1c; border-radius: 15px; box-shadow: 0 7px 24px #32131b2c; line-height: 1.15; }
.whatsapp-bubble::after { content: ""; position: absolute; right: -8px; top: 50%; width: 16px; height: 16px; background: #fff; transform: translateY(-50%) rotate(45deg); }
.whatsapp-bubble strong, .whatsapp-bubble small { position: relative; z-index: 1; display: block; }
.whatsapp-bubble small { margin-top: 4px; font-size: 11px; }
.whatsapp-button:hover .whatsapp-icon { transform: scale(1.06); }
@media (max-width: 800px) {
  .gallery-heading { grid-template-columns: 1fr; gap: 5px; }
  .gallery-grid, .all-gallery-grid { grid-auto-rows: 170px; }
  .gallery-item, .gallery-item:nth-child(5n+1), .gallery-item:nth-child(5n+5) { grid-column: span 6; }
  .gallery-modal { width: calc(100% - 16px); padding: 5px; }
  .gallery-modal img { height: 80vh; }
  .gallery-arrow { width: 42px; height: 52px; }
  .gallery-prev { left: 12px; } .gallery-next { right: 12px; }
  .all-gallery-modal { width: calc(100% - 16px); padding: 22px 14px; }
  .whatsapp-button { right: 14px; bottom: 14px; }
  .whatsapp-icon { width: 56px; height: 56px; }
  .whatsapp-bubble { display: none; }
}
