.gallery-section {
  background: #fff;
  padding: 80px 48px;
  font-family: var(--sub-font);
}

.gl-wrap {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.gl-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 48px;
}

.gl-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 10px;
}

.gl-h2 {
  font-family: var(--head-font);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.18;
  margin-bottom: 12px;
}

.gl-bar {
  width: 44px;
  height: 3px;
  background: var(--saffron);
  border: none;
  margin-bottom: 0;
}
.gl-body {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-body);
}

.gl-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  /* background: var(--cream-dark); */
  border: 1px solid var(--cream-dark);
  margin-bottom: 2px;
}
.gl-grid + .gl-grid {
  border-top: none;
  margin-bottom: 0;
}

.gl-item {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  /* background: var(--cream-dark); */
  cursor: pointer;
}

.gl-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.4s ease;
}

.gl-item:hover img {
  transform: scale(1.04);
}

.gl-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--saffron);
  z-index: 3;
  transition: width 0.2s ease 0s;
}

.gl-item::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 3px;
  height: 0;
  background: var(--saffron);
  z-index: 3;
  transition: height 0.2s ease 0.2s;
}

.gl-border-b {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  height: 3px;
  width: 0;
  background: var(--saffron);
  z-index: 3;
  transition: width 0.2s ease 0.4s;
}

.gl-border-l {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--saffron);
  z-index: 3;
  transition: height 0.2s ease 0.6s;
}

.gl-item:hover::before {
  width: 100%;
}
.gl-item:hover::after {
  height: 100%;
}
.gl-item:hover .gl-border-b {
  width: 100%;
}
.gl-item:hover .gl-border-l {
  height: 100%;
}

.gl-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 10, 0, 0);
  transition: background 0.35s;
  z-index: 2;
}
.gl-item:hover .gl-overlay {
  background: rgba(26, 10, 0, 0.18);
}

.gl-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 12px;
  background: rgba(26, 10, 0, 0.75);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 4;
}

.gl-caption p {
  font-size: 12px;
  font-weight: 500;
  color: var(--cream);
  line-height: 1.4;
}

.gl-caption span {
  font-size: 10px;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.gl-item:hover .gl-caption {
  transform: translateY(0);
}

/* View All button */
.gl-footer {
  margin-top: 32px;
  text-align: center;
}

.gl-btn {
  display: inline-block;
  font-family: var(--body-font);
  font-size: 13px;
  font-weight: 500;
  color: var(--saffron);
  border: 1px solid var(--saffron-light);
  padding: 10px 28px;
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s;
}
.gl-btn:hover {
  background: var(--saffron);
  color: #fff;
}

/* Responsive */
@media (max-width: 760px) {
  .gallery-section {
    padding: 52px 20px;
  }
  .gl-header {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .gl-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
