
.sw-gallery-page {
  background: #11110f;
  color: #f6f1e8;
  min-height: 100vh;
  font-family: inherit;
}

.sw-gallery-hero {
  text-align: center;
  padding: 75px 20px 65px;
  background: radial-gradient(ellipse at top, #4a3824 0%, #171613 55%, #11110f 100%);
}

.sw-eyebrow {
  color: #d5b16b;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.sw-gallery-hero h1 {
  font-family: Georgia, serif;
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 400;
  margin: 18px 0 12px;
}

.sw-gallery-hero h1 em,
.sw-gallery-heading h2 em {
  color: #d5b16b;
}

.sw-gallery-hero p,
.sw-gallery-heading p {
  color: #b5afa3;
  font-size: 13px;
}

.sw-gallery {
  max-width: 1400px;
  margin: auto;
  padding: 65px clamp(16px, 5vw, 65px) 80px;
}

.sw-gallery-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 28px;
}

.sw-gallery-heading h2 {
  font: 400 clamp(28px, 4vw, 42px) Georgia, serif;
  margin: 10px 0 0;
}

.sw-gallery-heading p {
  max-width: 240px;
}

.sw-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 28px;
}

.sw-filter {
  border: 1px solid #ffffff2b;
  border-radius: 30px;
  background: transparent;
  color: #e3dccf;
  padding: 9px 16px;
  font-size: 11px;
  cursor: pointer;
  transition: .2s ease;
}

.sw-filter:hover,
.sw-filter.active {
  background: #d5b16b;
  color: #17140e;
  border-color: #d5b16b;
}

.sw-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 270px;
  gap: 14px;
}

.sw-photo-card {
  min-width: 0;
}

.sw-photo-open {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #211e18;
  overflow: hidden;
  color: #fff;
  cursor: zoom-in;
}

.sw-photo-open img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}

.sw-photo-open:hover img {
  transform: scale(1.05);
}

.sw-photo-placeholder {
  height: 100%;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background: linear-gradient(145deg, #513c32, #211b19);
  border: 1px solid #ffffff12;
}

.sw-photo-placeholder span {
  color: #d5b16b;
  font-size: 12px;
  letter-spacing: 3px;
}

.sw-photo-placeholder strong {
  font: 400 25px Georgia, serif;
  color: #f4dfb1;
}

.sw-photo-placeholder small {
  color: #c4bdb1;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.tone-2 { background: linear-gradient(145deg,#57402f,#252019); }
.tone-3 { background: linear-gradient(145deg,#443545,#1d191f); }
.tone-4 { background: linear-gradient(145deg,#34434b,#1a2227); }
.tone-5 { background: linear-gradient(145deg,#67502b,#292116); }
.tone-6 { background: linear-gradient(145deg,#4e3d52,#201a24); }
.tone-7 { background: linear-gradient(145deg,#51463a,#211e19); }
.tone-8 { background: linear-gradient(145deg,#384c43,#1a221e); }

.sw-photo-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px 16px 14px;
  background: linear-gradient(transparent, #000d);
  text-align: left;
  font: 400 18px Georgia, serif;
}

.sw-gallery-note {
  color: #999184;
  font-size: 11px;
  margin-top: 20px;
}

.sw-lightbox[hidden] {
  display: none;
}

.sw-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000f;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.sw-lightbox img {
  max-width: 92vw;
  max-height: 85vh;
  object-fit: contain;
}

.sw-lightbox-close {
  position: absolute;
  top: 12px;
  right: 25px;
  border: 0;
  background: transparent;
  color: white;
  font-size: 40px;
  cursor: pointer;
}

@media (max-width: 760px) {
  .sw-gallery-hero { padding: 60px 18px 50px; }

  .sw-gallery-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .sw-gallery-heading p { margin: 0; }

  .sw-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 210px;
    gap: 9px;
  }

  .sw-photo-placeholder strong { font-size: 19px; }
}

@media (max-width: 420px) {
  .sw-gallery { padding: 45px 12px 55px; }
  .sw-filter { padding: 8px 12px; font-size: 10px; }
  .sw-photo-grid { grid-auto-rows: 170px; gap: 7px; }
  .sw-photo-caption { padding: 25px 10px 10px; font-size: 15px; }
  .sw-photo-placeholder strong { font-size: 16px; }
}

/* Dynamic Photography Gallery */
.sw-photo-card {
  min-width: 0;
  overflow: hidden;
}

.sw-photo-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
}

.sw-photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.sw-photo-open:hover img {
  transform: scale(1.04);
}

.sw-photo-caption {
  padding: 12px 8px;
}

.sw-load-more {
  display: block;
  margin: 35px auto 0;
  padding: 13px 28px;
  border: 1px solid #c7a76a;
  background: transparent;
  color: #c7a76a;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.sw-load-more:hover {
  background: #c7a76a;
  color: #111;
}

.sw-load-more[hidden],
.sw-lightbox[hidden] {
  display: none !important;
}

/* Photo Preview Popup */
.sw-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 20px 20px;
  background: rgba(0, 0, 0, 0.94);
}

.sw-lightbox img {
  display: block;
  max-width: 95%;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.sw-lightbox-close {
  position: absolute;
  top: 15px;
  right: 25px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
}

/* =========================================
   SOUL WEDDING — PHOTOGRAPHY GALLERY FIX
   Add this at the END of photography.css
========================================= */

#photography-gallery {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 30px 24px 70px;
  box-sizing: border-box;
}

/* Proper responsive grid */
#photography-gallery .sw-photo-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 22px !important;
  align-items: start !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 auto !important;
}

/* Individual photo card */
#photography-gallery .sw-photo-card {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-self: start !important;
  min-width: 0 !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #171614 !important;
  border: 1px solid rgba(199, 167, 106, 0.16);
  box-sizing: border-box !important;
}

/* Image button */
#photography-gallery .sw-photo-card .sw-photo-open {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #171614 !important;
  cursor: pointer;
}

/* Consistent image sizes */
#photography-gallery .sw-photo-card .sw-photo-open img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 3 !important;
  object-fit: cover !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 1 !important;
  transition: transform 0.5s ease !important;
}

#photography-gallery .sw-photo-card:hover .sw-photo-open img {
  transform: scale(1.035);
}

/* Caption below each photo — no full-width black strip */
#photography-gallery .sw-photo-card .sw-photo-caption {
  position: static !important;
  inset: auto !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 12px 14px !important;
  transform: none !important;
  background: #171614 !important;
  color: #c7a76a !important;
  font-family: inherit;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  letter-spacing: 1.5px !important;
  text-align: center !important;
  text-transform: uppercase;
  box-sizing: border-box !important;
}

/* Load More button */
#photography-gallery .sw-load-more {
  position: static !important;
  display: block;
  width: fit-content !important;
  max-width: 100%;
  height: auto !important;
  margin: 38px auto 0 !important;
  padding: 15px 30px !important;
  border: 1px solid #c7a76a !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #c7a76a !important;
  font-size: 11px !important;
  letter-spacing: 2px !important;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

#photography-gallery .sw-load-more:hover {
  background: #c7a76a !important;
  color: #111 !important;
}

#photography-gallery .sw-load-more[hidden] {
  display: none !important;
}

/* Photo count */
#photography-gallery .sw-gallery-note {
  position: static !important;
  margin: 18px auto 0 !important;
  color: #a6a097;
  font-size: 12px;
  text-align: center;
}

/* Tablet */
@media (max-width: 900px) {
  #photography-gallery .sw-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }

  #photography-gallery {
    padding-right: 18px;
    padding-left: 18px;
  }
}

/* Mobile */
@media (max-width: 560px) {
  #photography-gallery .sw-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  #photography-gallery {
    padding: 20px 12px 45px;
  }

  #photography-gallery .sw-photo-card .sw-photo-caption {
    padding: 9px 5px !important;
    font-size: 10px !important;
    letter-spacing: 1px !important;
  }

  #photography-gallery .sw-load-more {
    margin-top: 28px !important;
    padding: 13px 20px !important;
  }
}
