/* Gallery Sub-Page Styles */

.sy-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 18px 70px;
}

.sy-pagehead {
  margin-bottom: 18px;
}

.sy-kicker {
  color: var(--brand-teal, #0c3a4d);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}

.sy-wrap h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--brand-teal, #0c3a4d);
}

.sy-sub {
  margin: 0;
  color: rgba(8,18,23,.72);
  font-size: 16px;
  line-height: 1.6;
  max-width: 70ch;
}

.sy-toprow {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.sy-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(12,58,77,.16);
  color: var(--brand-teal, #0c3a4d);
  text-decoration: none;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0,0,0,.06);
  font-weight: 700;
  font-size: 14px;
  transition: transform .15s ease;
}
.sy-btn:hover { 
  transform: translateY(-1px);
}

/* Album grid */
.sy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.sy-card {
  border: 1px solid rgba(12,58,77,.16);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(12,58,77,.045);
  box-shadow: 0 16px 40px rgba(0,0,0,.10);
  transition: transform .15s ease, box-shadow .15s ease;
}
.sy-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 50px rgba(0,0,0,.12);
}

.sy-thumb {
  aspect-ratio: 4/3;
  background: #e9eef0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sy-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sy-meta {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sy-titleRow {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.sy-title {
  font-weight: 800;
  color: var(--brand-teal, #0c3a4d);
  line-height: 1.15;
}

.sy-count {
  font-size: 13px;
  font-weight: 800;
  color: var(--brand-gold-2, #d17f01);
  background: rgba(209,127,1,.12);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.sy-muted2 {
  color: rgba(8,18,23,.72);
  font-size: 14px;
  line-height: 1.45;
}

.sy-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Photo grid */
.sy-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.sy-photo {
  border: 1px solid rgba(12,58,77,.16);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  cursor: zoom-in;
  transition: transform .12s ease;
}
.sy-photo:hover { 
  transform: translateY(-2px);
}

.sy-photoThumb {
  aspect-ratio: 4/3;
  background: #e9eef0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sy-photoThumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sy-photoMeta {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sy-photoTitle {
  font-weight: 800;
  color: var(--brand-teal, #0c3a4d);
  font-size: 14px;
  line-height: 1.25;
  min-height: 18px;
}
.sy-photoDate {
  font-size: 13px;
  color: rgba(8,18,23,.72);
}

.sy-empty {
  margin-top: 22px;
  border: 1px dashed rgba(12,58,77,.16);
  border-radius: 18px;
  padding: 18px;
  color: rgba(8,18,23,.72);
  background: rgba(12,58,77,.03);
}

/* Lightbox */
.sy-lb {
  position: fixed;
  inset: 0;
  background: rgba(8,18,23,.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 9999;
}
.sy-lb.open { 
  display: flex;
}

.sy-lbInner {
  width: min(1200px, 100%);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sy-lbTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.sy-lbCap {
  color: rgba(255,255,255,.80);
  font-size: 14px;
}

.sy-lbBtns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.sy-lbBtn {
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.06);
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}
.sy-lbBtn:hover { 
  background: rgba(255,255,255,.12);
}

.sy-lbImgWrap {
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 20px 70px rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 86vh;
}
.sy-lbImg {
  max-width: 100%;
  max-height: 86vh;
  height: auto;
  width: auto;
  display: block;
}
