/* Shared gallery card styling */
.container .gallery-thumbs {
  display: block;
  width: calc(33.333% - 20px);
  margin: 10px;
  float: left;
  text-decoration: none;
}

.container .gallery-img-box {
  width: 100%;
  height: 240px;
  border-radius: 12px;
  background-color: #e3e6e4;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.45);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.container .gallery-thumbs:hover .gallery-img-box,
.thumb-listing-box .gallery-img-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.gallery-name-box {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 12px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.12));
  opacity: 1;
}

/* Album page split layout */
.thumb-listing-box {
  width: 48%;
  margin: 10px 2% 0 0;
  float: left;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
}

.thumb-listing-box .gallery-img-box {
  width: calc(33.333% - 10px);
  margin: 5px;
  height: 110px;
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
}

.main-img-box {
  width: 50%;
  float: left;
  margin-top: 10px;
  padding-left: 16px;
}

.main-img {
  display: block;
  width: 100%;
  margin: auto;
  border-radius: 12px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Album page presentation */
.album-gallery-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.album-preview-panel {
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.14);
}

.album-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  gap: 10px;
}

.album-preview-title {
  margin: 0;
  color: #1f1f1f;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.album-preview-count {
  margin: 0;
  color: #666;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.album-main-link {
  display: block;
  border-radius: 10px;
  overflow: hidden;
}

.album-main-link .main-img {
  transition: transform 0.3s ease, opacity 0.25s ease;
}

.album-main-link:hover .main-img {
  transform: scale(1.01);
}

.album-thumbs-panel {
  background: #f9f6ef;
  border: 1px solid #ece6d8;
  border-radius: 14px;
  padding: 18px;
}

.album-thumbs-label {
  margin: 0 0 14px;
  color: #2a2a2a;
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.album-thumbs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.album-thumb {
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  background: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.album-thumb:hover {
  transform: translateY(-2px);
  border-color: #d7b56b;
}

.album-thumb.is-active {
  border-color: #d7b56b;
  box-shadow: 0 0 0 3px rgba(215, 181, 107, 0.26);
}

.album-thumb-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

/* Keep floating children from collapsing parent height */
.about-left-content::after {
  content: "";
  display: block;
  clear: both;
}

@media screen and (max-width: 1100px) {
  .container .gallery-thumbs {
    width: calc(50% - 20px);
  }

  .album-gallery-layout {
    grid-template-columns: 1fr;
  }

  .album-thumbs-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .thumb-listing-box,
  .main-img-box {
    width: 100%;
    float: none;
    margin: 0;
    padding: 0;
  }

  .thumb-listing-box {
    margin-bottom: 20px;
  }

  .thumb-listing-box .gallery-img-box {
    width: calc(25% - 10px);
    height: 120px;
  }
}

@media screen and (max-width: 700px) {
  .container .gallery-thumbs {
    width: calc(100% - 20px);
  }

  .album-thumbs-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .container .gallery-img-box {
    height: 220px;
  }

  .thumb-listing-box .gallery-img-box {
    width: calc(50% - 10px);
    height: 120px;
  }
}

@media screen and (max-width: 500px) {
  .album-preview-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .album-thumbs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .thumb-listing-box .gallery-img-box {
    width: calc(100% - 10px);
    height: 160px;
  }

  .main-img-box {
    display: none;
  }
}