/* D'Glaze Gallery — photos & videos */

body.dglaze-gallery-page {
  background:
    radial-gradient(ellipse 90% 55% at 0% 0%, rgba(201, 162, 39, 0.11), transparent 52%),
    radial-gradient(ellipse 70% 45% at 100% 8%, rgba(8, 143, 143, 0.12), transparent 48%),
    linear-gradient(180deg, #faf8f3 0%, #f3efe6 100%);
}

body.dglaze-gallery-page .site-content {
  padding-top: 0;
  overflow-x: clip;
}

/* Hero */
.dglaze-g-hero {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 20px 32px;
  text-align: center;
}

.dglaze-g-hero::before {
  content: "";
  position: absolute;
  inset: 12% 18% auto;
  height: 120px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.18), transparent 70%);
  pointer-events: none;
  filter: blur(8px);
}

.dglaze-g-hero .svc-eyebrow {
  position: relative;
}

.dglaze-g-hero h1 {
  position: relative;
  margin: 0 0 14px;
  font-family: var(--vite-primary-font), sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 22px;
  line-height: 125%;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #000;
}

@media screen and (min-width: 1280px) {
  .dglaze-g-hero h1 {
    font-weight: 500;
    font-size: 40px;
    line-height: 120%;
    letter-spacing: 0.35em;
  }
}

@media (max-width: 640px) {
  .dglaze-g-hero h1 {
    font-size: 18px;
    letter-spacing: 0.16em;
  }
}

.dglaze-g-hero .svc-tagline {
  position: relative;
  margin-bottom: 16px;
}

.dglaze-g-hero .svc-intro {
  position: relative;
  max-width: 620px;
  margin: 0 auto 28px;
  font-size: 16px;
  line-height: 1.65;
  color: #4a4a4a;
}

.dglaze-g-stats {
  position: relative;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dglaze-g-stats li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(8, 143, 143, 0.18);
  backdrop-filter: blur(6px);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #333;
}

.dglaze-g-stats strong {
  font-size: 18px;
  letter-spacing: 0;
  color: var(--dglaze-teal-dark, #066969);
}

/* Toolbar */
.dglaze-g-toolbar-wrap {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 0 20px 18px;
  background: linear-gradient(180deg, rgba(250, 248, 243, 0.96) 70%, rgba(250, 248, 243, 0));
  backdrop-filter: blur(8px);
}

.dglaze-g-toolbar {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.dglaze-g-filter {
  appearance: none;
  border: 1px solid rgba(8, 143, 143, 0.22);
  background: transparent;
  color: #2a2a2a;
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.dglaze-g-filter:hover {
  border-color: var(--dglaze-teal, #088f8f);
  color: var(--dglaze-teal-dark, #066969);
}

.dglaze-g-filter.is-active {
  background: var(--dglaze-gold, #c9a227);
  border-color: var(--dglaze-gold, #c9a227);
  color: #111;
}

.dglaze-g-count {
  width: 100%;
  text-align: center;
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #777;
}

/* Grid */
.dglaze-g-grid-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 64px;
}

.dglaze-g-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 12px;
}

@media (min-width: 768px) {
  .dglaze-g-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (min-width: 1100px) {
  .dglaze-g-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
}

.dglaze-g-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: #111;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.dglaze-g-item.is-hidden {
  display: none;
}

.dglaze-g-item--wide {
  grid-column: span 2;
  aspect-ratio: 16 / 10;
}

.dglaze-g-item--tall {
  grid-row: span 2;
  aspect-ratio: auto;
}

.dglaze-g-item--feature {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}

@media (max-width: 767px) {
  .dglaze-g-item--wide,
  .dglaze-g-item--feature {
    grid-column: span 2;
  }

  .dglaze-g-item--tall,
  .dglaze-g-item--feature {
    grid-row: span 1;
    aspect-ratio: 3 / 4;
  }
}

.dglaze-g-item img,
.dglaze-g-item video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.dglaze-g-item video {
  opacity: 0;
  pointer-events: none;
}

.dglaze-g-item.is-previewing video {
  opacity: 1;
}

.dglaze-g-item__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 40%, rgba(0, 0, 0, 0.72) 100%);
  opacity: 0.72;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.dglaze-g-item:hover .dglaze-g-item__shade,
.dglaze-g-item:focus-visible .dglaze-g-item__shade {
  opacity: 0.92;
}

.dglaze-g-item:hover img,
.dglaze-g-item:focus-visible img {
  transform: scale(1.06);
}

.dglaze-g-item__meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px;
  text-align: left;
  pointer-events: none;
}

.dglaze-g-item__tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dglaze-gold-bright, #d4af37);
}

.dglaze-g-item__kind {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.dglaze-g-item__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  pointer-events: none;
  transition: transform 0.3s ease, background 0.3s ease;
}

.dglaze-g-item__play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 9px 0 9px 14px;
  border-color: transparent transparent transparent var(--dglaze-teal-dark, #066969);
}

.dglaze-g-item[data-type="photo"] .dglaze-g-item__play {
  display: none;
}

.dglaze-g-item:hover .dglaze-g-item__play,
.dglaze-g-item:focus-visible .dglaze-g-item__play {
  transform: scale(1.08);
  background: var(--dglaze-gold, #c9a227);
}

.dglaze-g-item:focus-visible {
  outline: 2px solid var(--dglaze-gold, #c9a227);
  outline-offset: 3px;
}

/* CTA */
.dglaze-g-cta {
  max-width: 900px;
  margin: 0 auto 56px;
  padding: 36px 24px;
  text-align: center;
  background: #0a0a0a;
  color: #fff;
  border: 1px solid rgba(201, 162, 39, 0.35);
}

.dglaze-g-cta h2 {
  margin: 0 0 14px;
  font-family: var(--vite-primary-font), sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 22px;
  line-height: 125%;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--dglaze-gold-bright, #d4af37);
}

@media screen and (min-width: 1280px) {
  .dglaze-g-cta h2 {
    font-weight: 500;
    font-size: 36px;
    line-height: 120%;
    letter-spacing: 0.35em;
  }
}

.dglaze-g-cta p {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.dglaze-g-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.dglaze-g-cta .svc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 12px 20px;
  background: var(--dglaze-gold, #c9a227);
  color: #111;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--dglaze-gold, #c9a227);
  transition: background 0.25s ease, color 0.25s ease;
}

.dglaze-g-cta .svc-btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.dglaze-g-cta .svc-btn:hover {
  background: var(--dglaze-gold-bright, #d4af37);
  color: #111;
}

.dglaze-g-cta .svc-btn--ghost:hover {
  border-color: var(--dglaze-teal-bright, #0aa3a3);
  color: var(--dglaze-teal-bright, #0aa3a3);
  background: transparent;
}

/* Lightbox */
.dglaze-g-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5, 5, 5, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dglaze-g-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.dglaze-g-lightbox__inner {
  position: relative;
  width: min(960px, 100%);
  max-height: calc(100vh - 80px);
}

.dglaze-g-lightbox__media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  max-height: calc(100vh - 120px);
  background: #000;
  border: 1px solid rgba(201, 162, 39, 0.25);
}

.dglaze-g-lightbox__media img,
.dglaze-g-lightbox__media video {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 120px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.dglaze-g-lightbox__caption {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.dglaze-g-lightbox__caption span:first-child {
  color: var(--dglaze-gold-bright, #d4af37);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dglaze-g-lightbox__close,
.dglaze-g-lightbox__prev,
.dglaze-g-lightbox__next {
  position: absolute;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  width: 44px;
  height: 44px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.dglaze-g-lightbox__close:hover,
.dglaze-g-lightbox__prev:hover,
.dglaze-g-lightbox__next:hover {
  border-color: var(--dglaze-gold, #c9a227);
  background: rgba(201, 162, 39, 0.15);
}

.dglaze-g-lightbox__close {
  top: -52px;
  right: 0;
  font-size: 22px;
  line-height: 1;
}

.dglaze-g-lightbox__prev,
.dglaze-g-lightbox__next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  line-height: 1;
}

.dglaze-g-lightbox__prev {
  left: -56px;
}

.dglaze-g-lightbox__next {
  right: -56px;
}

@media (max-width: 900px) {
  .dglaze-g-lightbox__prev {
    left: 8px;
  }

  .dglaze-g-lightbox__next {
    right: 8px;
  }

  .dglaze-g-lightbox__close {
    top: 8px;
    right: 8px;
    z-index: 2;
  }
}

body.dglaze-lightbox-open {
  overflow: hidden;
}
