/* =====================================================================
   Motion & polish layer for the Next.js rebuild
   - hero cinematic slider, page transitions, scroll reveals, hovers
   - everything is GPU-friendly (transform/opacity/clip-path only)
   ===================================================================== */
:root {
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --gold: #c8a15a;
}
html { scroll-behavior: smooth; }
::selection { background: var(--gold); color: #111; }

/* ---------- Intro curtain (first visit only, ~1s) ---------- */
.intro { position: fixed; inset: 0; z-index: 999999; background: #111; display: flex; align-items: center; justify-content: center;
  animation: introOut .7s var(--ease-io) .85s forwards; pointer-events: none; }
.intro img { width: 170px; height: auto; opacity: 0; filter: blur(6px); animation: introLogo .9s var(--ease-out) .05s forwards; }
.intro::after { content: ''; position: absolute; left: 50%; bottom: 38%; width: 120px; height: 1px; margin-left: -60px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; animation: introLine .8s var(--ease-io) .2s forwards; }
@keyframes introLogo { to { opacity: 1; filter: blur(0); } }
@keyframes introLine { to { transform: scaleX(1); } }
@keyframes introOut { to { transform: translateY(-100%); } }

/* ---------- Route progress bar ---------- */
.route-bar { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 100000; background: var(--gold); transform-origin: left;
  transform: scaleX(0); opacity: 0; transition: transform .4s var(--ease-out), opacity .3s ease; box-shadow: 0 0 10px rgba(200,161,90,.6); }
.route-bar.on { opacity: 1; transform: scaleX(.7); transition: transform 2.5s var(--ease-out), opacity .1s; }
.route-bar.done { opacity: 0; transform: scaleX(1); }

/* ---------- Page transition (app/template.tsx) ---------- */
.page-enter { animation: pageIn .7s var(--ease-out) backwards; }   /* 'backwards': no transform left behind (it would trap position:fixed children) */
@keyframes pageIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Cinematic hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: #0d0d0d; }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.4s var(--ease-io), visibility 0s linear 1.4s; }
.hero-slide.is-active { opacity: 1; visibility: visible; transition: opacity 1.4s var(--ease-io), visibility 0s; z-index: 1; }
.hero-media { position: absolute; inset: -3%; will-change: transform; }
.hero-media img { object-fit: cover; transform: scale(1.18); transition: transform 1.4s var(--ease-io); }
.hero-slide.is-active .hero-media img { transform: scale(1.02); transition: transform 8s linear; }        /* Ken Burns */
.hero-shade { position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.25) 55%, rgba(0,0,0,.05) 100%),
              linear-gradient(0deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 40%); }
.hero-content { position: absolute; z-index: 3; left: 0; right: 0; top: 50%; transform: translateY(-50%); padding: 0 7%; }
.hero-content .kicker { display: inline-flex; align-items: center; gap: 14px; font-family: 'Jost', sans-serif; font-size: 13px; letter-spacing: 6px;
  text-transform: uppercase; color: var(--gold); margin-bottom: 22px; }
.hero-content .kicker::before { content: ''; width: 48px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform 1s var(--ease-out) .3s; }
.hero-content h1, .hero-content .hero-title { font-family: 'Cormorant Garamond', serif; font-weight: 500; color: #fff; font-size: clamp(42px, 7vw, 104px); line-height: .98;
  letter-spacing: -.5px; margin: 0 0 26px; max-width: 14ch; text-transform: none; }
.hero-content p { color: rgba(255,255,255,.78); font-size: 17px; line-height: 1.7; max-width: 46ch; margin: 0 0 34px; }
.line { display: block; overflow: hidden; padding-bottom: .06em; }
.line > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease-out); }
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.hero-slide.is-active .kicker::before { transform: scaleX(1); }
.hero-slide.is-active .line > span, .hero-slide.is-active .fade-up { transform: none; opacity: 1; }
.hero-slide.is-active .kicker.fade-up { transition-delay: .35s; }
.hero-slide.is-active .line:nth-child(1) > span { transition-delay: .5s; }
.hero-slide.is-active .line:nth-child(2) > span { transition-delay: .62s; }
.hero-slide.is-active .line:nth-child(3) > span { transition-delay: .74s; }
.hero-slide.is-active .line:nth-child(4) > span { transition-delay: .86s; }
.hero-slide.is-active p.fade-up { transition-delay: .95s; }
.hero-slide.is-active .hero-cta.fade-up { transition-delay: 1.1s; }
.hero-cta { display: inline-flex; gap: 16px; flex-wrap: wrap; }
.btn-gold { position: relative; display: inline-flex; align-items: center; gap: 12px; padding: 15px 30px; font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  color: #111; background: var(--gold); overflow: hidden; transition: color .5s var(--ease-out); text-decoration: none; }
.btn-gold::before { content: ''; position: absolute; inset: 0; background: #fff; transform: translateX(-101%); transition: transform .6s var(--ease-out); }
.btn-gold:hover { color: #111; } .btn-gold:hover::before { transform: none; }
.btn-gold > * , .btn-gold span { position: relative; }
.btn-line { display: inline-flex; align-items: center; padding: 15px 4px; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: #fff;
  text-decoration: none; background: linear-gradient(currentColor,currentColor) left bottom / 100% 1px no-repeat; transition: background-size .6s var(--ease-out); }
.btn-line:hover { color: #fff; background-size: 0 1px; background-position: right bottom; }

.hero-ui { position: absolute; z-index: 4; left: 7%; right: 7%; bottom: 6vh; display: flex; align-items: center; gap: 28px; color: #fff; }
.hero-count { font-family: 'Cormorant Garamond', serif; font-size: 20px; letter-spacing: 2px; min-width: 86px; }
.hero-count b { font-weight: 500; font-size: 30px; color: var(--gold); }
.hero-bars { display: flex; gap: 10px; flex: 1; max-width: 420px; }
.hero-bars button { flex: 1; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.hero-bars button::before, .hero-bars button i { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: rgba(255,255,255,.25); }
.hero-bars button i { background: #fff; transform: scaleX(0); transform-origin: left; }
.hero-bars button.done i { transform: scaleX(1); }
.hero-bars button.on i { animation: barFill var(--dur, 6s) linear forwards; }
.hero.paused .hero-bars button.on i { animation-play-state: paused; }
@keyframes barFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-arrows { margin-left: auto; display: flex; gap: 10px; }
.hero-arrows button { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(0,0,0,.15); color: #fff;
  cursor: pointer; backdrop-filter: blur(4px); transition: background .4s, border-color .4s, transform .4s var(--ease-out); font-size: 12px; }
.hero-arrows button:hover { background: #fff; color: #111; border-color: #fff; transform: scale(1.06); }
.hero-scroll { position: absolute; z-index: 4; right: 3.2%; top: 50%; transform: translateY(-50%) rotate(90deg); transform-origin: center; color: rgba(255,255,255,.7);
  font-size: 11px; letter-spacing: 5px; text-transform: uppercase; display: flex; align-items: center; gap: 14px; text-decoration: none; }
.hero-scroll::after { content: ''; width: 60px; height: 1px; background: rgba(255,255,255,.3); background-image: linear-gradient(90deg, #fff, #fff);
  background-size: 30% 100%; background-repeat: no-repeat; animation: scrollCue 2.2s var(--ease-io) infinite; }
@keyframes scrollCue { from { background-position: -40% 0; } to { background-position: 140% 0; } }
@media (max-width: 767px) {
  .hero-content { padding: 0 24px; top: 46%; }
  .hero-ui { left: 24px; right: 24px; gap: 16px; } .hero-arrows, .hero-scroll { display: none; }
  .hero-shade { background: linear-gradient(0deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,.25) 60%, rgba(0,0,0,.35) 100%); }
}

/* ---------- Scroll reveal ---------- */
.js .rv { opacity: 0; transform: translateY(46px); transition: opacity 1.1s var(--ease-out), transform 1.2s var(--ease-out); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv-img { clip-path: inset(0 0 100% 0); transition: clip-path 1.4s var(--ease-io); transition-delay: var(--d, 0s); }
.js .rv-img img { transform: scale(1.25); transition: transform 1.8s var(--ease-out); transition-delay: var(--d, 0s); }
.js .rv-img.in { clip-path: inset(0 0 0 0); } .js .rv-img.in img { transform: scale(1); }
.js .rv-line { transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease-out) .25s; } .js .rv-line.in { transform: none; }
/* the old animate-box no longer used */
.js .animate-box { opacity: 1 !important; }

/* ---------- Hovers ---------- */
.gallery-box, .vid-icon, .about-img .img { overflow: hidden; }
.gallery-box img, .vid-icon img { transition: transform 1.2s var(--ease-out), filter .8s ease !important; }
.gallery-box:hover img, .vid-icon:hover img { transform: scale(1.06); }
.vid-icon img { filter: brightness(.82); } .vid-icon:hover img { filter: brightness(.65); }
.video-gallery-button .video-gallery-polygon { transition: transform .6s var(--ease-out); }
.vid-icon:hover .video-gallery-polygon { transform: scale(1.12); }
.vid-icon .video-gallery-polygon::after { content: ''; position: absolute; inset: -12px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5);
  animation: pulse 2.4s var(--ease-out) infinite; }
@keyframes pulse { from { transform: scale(.8); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.video-gallery-polygon { position: relative; }
.phoxel-main-menu ul li a { position: relative; display: inline-block; transition: color .4s ease, letter-spacing .5s var(--ease-out); }
.phoxel-main-menu ul li a::after { content: ''; position: absolute; left: 0; bottom: -4px; height: 1px; width: 100%; background: var(--gold);
  transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease-out); }
.phoxel-main-menu ul li a:hover::after, .phoxel-main-menu ul li.active a::after { transform: scaleX(1); transform-origin: left; }
.button-tersiyer { transition: background .5s var(--ease-out), color .5s var(--ease-out), border-color .5s !important; }
.services2 .square-flip .square, .services2 .square-flip .square2 { transition-timing-function: var(--ease-out) !important; }

/* ---------- Layout fixes ---------- */
.works-section { padding-top: 0 !important; }
.logo-img { max-height: 120px; width: auto; object-fit: contain; }
.footer-logo img { max-width: 180px; max-height: 120px; object-fit: contain; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .rv, .js .rv-img { opacity: 1; transform: none; clip-path: none; }
}

/* ---------- Shimmer loading (images, backgrounds, data) ---------- */
@keyframes shimmer { from { background-position: -150% 0; } to { background-position: 250% 0; } }
.shimmer, .img-wait, .bg-wait::after, .skel {
  background-color: #1f1f1f;
  background-image: linear-gradient(100deg, rgba(255,255,255,0) 20%, rgba(255,255,255,.07) 40%, rgba(200,161,90,.10) 50%, rgba(255,255,255,.07) 60%, rgba(255,255,255,0) 80%);
  background-size: 60% 100%; background-repeat: no-repeat;
  animation: shimmer 1.5s ease-in-out infinite;
}
/* wrapper of an image that is still loading */
.img-wait { position: relative; min-height: 80px; }
.img-wait > img, img.is-loading { opacity: 0; }
img { transition: opacity .7s var(--ease-out), transform 1.2s var(--ease-out); }
.hero-media.img-wait { min-height: 0; }
.author-img.img-wait { border-radius: 50%; min-height: 0; }
/* element whose CSS background image is still loading */
.bg-wait { position: relative; }
.bg-wait::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; transition: opacity .6s ease; }
.bg-done::after { opacity: 0; }
/* page-level skeleton (app/loading.tsx) */
.skel-page { padding: 120px 7% 80px; min-height: 100vh; background: #1b1b1b; }
.skel { border-radius: 2px; }
.skel-title { height: 54px; width: min(520px, 80%); margin-bottom: 22px; }
.skel-line { height: 14px; margin-bottom: 12px; }
.skel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 60px; }
.skel-card { aspect-ratio: 4 / 5; }
@media (max-width: 767px) { .skel-grid { grid-template-columns: 1fr; } }
/* masonry: shimmer instead of a blank area before layout */
.masonry:not(.is-ready) { opacity: 1; min-height: 420px; }
.masonry:not(.is-ready) > * { visibility: hidden; }
.masonry:not(.is-ready)::before { content: ''; position: absolute; inset: 0 15px; background-color: #1f1f1f;
  background-image: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.07) 40%, rgba(200,161,90,.1) 50%, rgba(255,255,255,.07) 60%, transparent 80%);
  background-size: 60% 100%; background-repeat: no-repeat; animation: shimmer 1.5s ease-in-out infinite; }
/* sending state on buttons */
input[type=submit][disabled] { background-image: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.25) 50%, transparent 80%);
  background-size: 60% 100%; background-repeat: no-repeat; animation: shimmer 1.2s linear infinite; cursor: progress; }
@media (prefers-reduced-motion: reduce) { .shimmer, .img-wait, .bg-wait::after, .skel, .masonry::before { animation: none !important; } }

/* ---------- Professional lightbox ---------- */
.plb { position: fixed; inset: 0; z-index: 999990; color: #fff; display: flex; flex-direction: column; background: #070707;
  animation: plbIn .45s var(--ease-out) both; user-select: none; -webkit-user-select: none; }
.plb.plb-out { animation: plbOut .26s ease forwards; }
@keyframes plbIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes plbOut { to { opacity: 0; } }
.plb-bg { position: absolute; inset: -60px; transition: opacity .6s; background-size: cover; background-position: center; filter: blur(48px) saturate(1.2) brightness(.35);
  transform: scale(1.1); transition: background-image .8s ease; }
.plb-top, .plb-bottom, .plb-nav { position: relative; z-index: 3; transition: opacity .5s ease, transform .5s var(--ease-out); }
.plb-idle .plb-top { opacity: 0; transform: translateY(-12px); }
.plb-idle .plb-nav { opacity: 0; }
.plb-idle .plb-bottom { opacity: 0; transform: translateY(12px); }
.plb-idle { cursor: none; }
.plb-top { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px;
  background: linear-gradient(rgba(0,0,0,.55), transparent); }
.plb-count { display: flex; align-items: baseline; gap: 8px; font-family: 'Cormorant Garamond', serif; letter-spacing: 1px; }
.plb-count b { font-size: 28px; font-weight: 500; color: var(--gold); }
.plb-count span { font-size: 16px; color: rgba(255,255,255,.6); }
.plb-count em { font-style: normal; font-family: 'Jost', sans-serif; font-size: 11px; letter-spacing: 4px; text-transform: uppercase; color: rgba(255,255,255,.7); margin-left: 18px; }
.plb-tools { display: flex; gap: 6px; }
.plb-tools button, .plb-tools a { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #fff; cursor: pointer; font-size: 14px; text-decoration: none;
  backdrop-filter: blur(8px); transition: background .3s, color .3s, transform .3s var(--ease-out), border-color .3s; }
.plb-tools button:hover, .plb-tools a:hover, .plb-tools .on { background: #fff; color: #111; border-color: #fff; transform: scale(1.06); }
.plb-tools .plb-x:hover { background: var(--gold); border-color: var(--gold); transform: rotate(90deg); }
.plb-progress { position: absolute; top: 0; left: 0; height: 2px; width: 100%; z-index: 4; background: var(--gold); transform-origin: left; animation: barFill 3.8s linear forwards; }
.plb-stage { position: relative; z-index: 2; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden;
  touch-action: none; cursor: zoom-in; transition: transform .35s var(--ease-out); padding: 0 80px; }
.plb-frame { position: relative; aspect-ratio: var(--ar, 1.5); width: min(100%, calc((100vh - 200px) * var(--ar, 1.5))); max-height: 100%;
  box-shadow: 0 30px 80px rgba(0,0,0,.55); transition: transform .45s var(--ease-out); will-change: transform; animation: plbFrame .6s var(--ease-out) both; }
.plb-frame.from-r { --fx: 50px; } .plb-frame.from-l { --fx: -50px; }
@keyframes plbFrame { from { opacity: 0; translate: var(--fx, 0) 0; scale: .97; } to { opacity: 1; translate: 0 0; scale: 1; } }
.plb-frame.zoomed { cursor: grab; box-shadow: none; transition: transform .3s var(--ease-out); }
.plb-frame.zoomed:active { cursor: grabbing; transition: none; }
.plb-frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s var(--ease-out), filter .8s ease; }
.plb-ph { filter: blur(14px); transform: scale(1.02); }
.plb-ph.is-in { opacity: 1; }
.plb-img { filter: blur(6px); } .plb-img.is-in { opacity: 1; filter: none; }
.plb-loader { position: absolute; right: 16px; bottom: 16px; z-index: 2; }
.plb-loader span { display: block; width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); border-top-color: var(--gold); animation: rotate .9s linear infinite; }
@keyframes rotate { to { transform: rotate(360deg); } }
@media (max-width: 767px) { .plb-frame { width: min(100%, calc((100svh - 190px) * var(--ar, 1.5))); } }
.plb-nav { position: relative; z-index: 3; transition: opacity .5s ease, transform .5s var(--ease-out); }
.plb-idle .plb-top { opacity: 0; transform: translateY(-12px); }
.plb-idle .plb-nav { opacity: 0; }
.plb-idle .plb-bottom { opacity: 0; transform: translateY(12px); }
.plb-idle { cursor: none; }
.plb-top { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px;
  background: linear-gradient(rgba(0,0,0,.55), transparent); }
.plb-count { display: flex; align-items: baseline; gap: 8px; font-family: 'Cormorant Garamond', serif; letter-spacing: 1px; }
.plb-count b { font-size: 28px; font-weight: 500; color: var(--gold); }
.plb-count span { font-size: 16px; color: rgba(255,255,255,.6); }
.plb-count em { font-style: normal; font-family: 'Jost', sans-serif; font-size: 11px; letter-spacing: 4px; text-transform: uppercase; color: rgba(255,255,255,.7); margin-left: 18px; }
.plb-tools { display: flex; gap: 6px; }
.plb-tools button, .plb-tools a { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #fff; cursor: pointer; font-size: 14px; text-decoration: none;
  backdrop-filter: blur(8px); transition: background .3s, color .3s, transform .3s var(--ease-out), border-color .3s; }
.plb-tools button:hover, .plb-tools a:hover, .plb-tools .on { background: #fff; color: #111; border-color: #fff; transform: scale(1.06); }
.plb-tools .plb-x:hover { background: var(--gold); border-color: var(--gold); transform: rotate(90deg); }
.plb-progress { position: absolute; top: 0; left: 0; height: 2px; width: 100%; z-index: 4; background: var(--gold); transform-origin: left; animation: barFill 3.8s linear forwards; }
.plb-stage { position: relative; z-index: 2; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden;
  touch-action: none; cursor: zoom-in; transition: transform .35s var(--ease-out); padding: 0 80px; }
.plb-img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 30px 80px rgba(0,0,0,.55); opacity: 0;
  transition: opacity .55s var(--ease-out), transform .45s var(--ease-out), filter .55s ease; filter: blur(10px); will-change: transform; }
.plb-img.from-r:not(.is-in) { transform: translateX(40px) scale(.97) !important; }
.plb-img.from-l:not(.is-in) { transform: translateX(-40px) scale(.97) !important; }
.plb-img.is-in { opacity: 1; filter: none; }
.plb-img.zoomed { cursor: grab; box-shadow: none; transition: opacity .55s, filter .55s, transform .3s var(--ease-out); }
.plb-img.zoomed:active { cursor: grabbing; transition: none; }
.plb-loader { position: absolute; inset: 15% 20%; border-radius: 2px; background-color: rgba(255,255,255,.03);
  background-image: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.06) 40%, rgba(200,161,90,.12) 50%, rgba(255,255,255,.06) 60%, transparent 80%);
  background-size: 60% 100%; background-repeat: no-repeat; animation: shimmer 1.4s ease-in-out infinite; display: flex; align-items: center; justify-content: center; }
.plb-loader span { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); border-top-color: var(--gold); animation: rotate .9s linear infinite; }
@keyframes rotate { to { transform: rotate(360deg); } }
.plb-nav { position: absolute; top: 50%; margin-top: -32px; width: 64px; height: 64px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.25); color: #fff; font-size: 18px; cursor: pointer; backdrop-filter: blur(8px);
  transition: background .3s, color .3s, transform .4s var(--ease-out), opacity .5s; }
.plb-nav:hover { background: #fff; color: #111; }
.plb-prev { left: 22px; } .plb-next { right: 22px; }
.plb-prev:hover { transform: translateX(-4px); } .plb-next:hover { transform: translateX(4px); }
.plb-bottom { padding: 12px 24px 18px; background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.plb-cap { text-align: center; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 20px; margin-bottom: 12px; color: rgba(255,255,255,.9); }
.plb-strip { display: flex; gap: 8px; overflow-x: auto; justify-content: safe center; scrollbar-width: none; padding: 4px 2px; }
.plb-strip::-webkit-scrollbar { display: none; }
.plb-strip button { flex: 0 0 auto; width: 72px; height: 52px; padding: 0; border: 0; background: #222; cursor: pointer; opacity: .45; overflow: hidden;
  outline: 1px solid transparent; outline-offset: 2px; transition: opacity .3s, outline-color .3s, transform .3s var(--ease-out); }
.plb-strip button img { width: 100%; height: 100%; object-fit: cover; }
.plb-strip button:hover { opacity: .85; }
.plb-strip button.on { opacity: 1; outline-color: var(--gold); transform: translateY(-2px); }
@media (max-width: 767px) {
  .plb-stage { padding: 0; } .plb-nav { display: none; } .plb-top { padding: 12px 14px; }
  .plb-tools button, .plb-tools a { width: 38px; height: 38px; } .plb-count em { display: none; }
  .plb-strip button { width: 56px; height: 42px; } .plb.plb-idle .plb-top, .plb.plb-idle .plb-bottom { opacity: 1; transform: none; }
}

/* ---------- Gallery detail: info + photo wall ---------- */
.gd-info { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: start; margin-bottom: 60px; }
.gd-info p.gd-text { font-size: 17px; line-height: 1.9; color: #bbb; margin: 0; white-space: pre-line; }
.gd-meta { display: grid; gap: 0; border-top: 1px solid rgba(255,255,255,.08); }
.gd-meta div { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.gd-meta dt { font-size: 11px; letter-spacing: 4px; text-transform: uppercase; color: #888; font-weight: 400; }
.gd-meta dd { margin: 0; color: #fff; font-family: 'Cormorant Garamond', serif; font-size: 20px; text-align: right; }
.gd-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.gd-bar h3 { margin: 0; font-size: 30px; }
.gd-bar .gd-count { color: #888; font-size: 13px; letter-spacing: 3px; text-transform: uppercase; }
.gd-wall { column-width: 240px; column-gap: 12px; }
.gd-tile { position: relative; display: block; width: 100%; margin: 0 0 12px; padding: 0; border: 0; background: #1f1f1f; cursor: zoom-in; overflow: hidden;
  break-inside: avoid; }
.gd-tile img { display: block; width: 100%; height: auto; transition: transform 1.1s var(--ease-out), filter .6s ease, opacity .7s var(--ease-out); }
.gd-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0,0,0,.55)); opacity: 0; transition: opacity .5s ease; }
.gd-tile .gd-zoom { position: absolute; z-index: 2; right: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.95); color: #111;
  display: flex; align-items: center; justify-content: center; font-size: 14px; opacity: 0; transform: translateY(10px) scale(.8); transition: opacity .4s, transform .5s var(--ease-out); }
.gd-tile .gd-num { position: absolute; z-index: 2; left: 14px; bottom: 14px; font-family: 'Cormorant Garamond', serif; font-size: 18px; color: #fff; opacity: 0; transition: opacity .4s; }
.gd-tile:hover img { transform: scale(1.05); }
.gd-tile:hover::after, .gd-tile:hover .gd-num { opacity: 1; }
.gd-tile:hover .gd-zoom { opacity: 1; transform: none; }
.gd-wall:hover .gd-tile:not(:hover) img { filter: brightness(.6) grayscale(.2); }
.gd-back { display: inline-flex; align-items: center; gap: 10px; margin-top: 50px; color: #fff; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; }
.gd-back:hover { color: var(--gold); }
@media (max-width: 767px) { .gd-wall { column-width: 150px; column-gap: 8px; } .gd-tile { margin-bottom: 8px; } .gd-info { grid-template-columns: 1fr; gap: 30px; } }
@media (hover: none) { .gd-tile .gd-zoom { opacity: .9; transform: none; width: 32px; height: 32px; font-size: 11px; right: 8px; bottom: 8px; } }
