/* Levha — the detail plate of a work (gallery, films, drawing, künye + text, previous / next, copy link).
 * Shared by the works archive (isler/) and the home page's "Sanatsal Eserler" gallery. Built by js/levha.js.
 * Class names keep the archive's "isl-" prefix. */
html.is-levha {
  overflow: hidden;
}
.isl-levha {
  position: fixed;
  inset: 0;
  z-index: 120;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}
.isl-levha.is-open {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
.isl-levha__scrim {
  position: absolute;
  inset: 0;
  background: rgba(6, 4, 3, 0.95);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.isl-levha__panel {
  position: relative;
  width: min(1560px, 100%);
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(290px, 26vw, 400px);
  grid-template-rows: minmax(0, 1fr) auto;
  column-gap: clamp(18px, 2.6vw, 44px);
  padding: clamp(60px, 8vh, 78px) clamp(16px, 3vw, 48px) clamp(14px, 2.6vh, 28px);
}
.isl-levha__close {
  position: absolute;
  top: clamp(12px, 2.4vh, 22px);
  right: clamp(12px, 2vw, 32px);
  z-index: 5;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(10, 8, 7, 0.6);
  color: var(--ink);
  transition: border-color 0.25s, background-color 0.25s, transform 0.4s var(--ease-out);
}
.isl-levha__close:hover {
  border-color: var(--gold-bright);
  transform: rotate(90deg);
}
.isl-levha__close svg {
  width: 16px;
  height: 16px;
}
.isl-levha__brand {
  position: absolute;
  top: clamp(18px, 3vh, 28px);
  left: clamp(16px, 3vw, 48px);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dim);
}
.isl-levha__gallery {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.isl-levha__caption {
  flex: 0 0 auto;
  padding: 8px 2px 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  overflow-wrap: anywhere;
  max-height: 25%;
  overflow-y: auto;
}
.isl-levha__caption[hidden] {
  display: none;
}
.isl-levha__stage {
  flex: 1 1 auto;
  position: relative;
  min-height: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #050403;
  overflow: hidden;
}
.isl-levha__stage.is-light {
  background: #eee8db;
  border-color: rgba(231, 200, 120, 0.4);
}
.isl-levha__stage > img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: opacity 0.35s ease;
}
.isl-levha__stage.is-loading > img {
  opacity: 0.25;
}
.isl-levha__stage.is-loading::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border: 2px solid rgba(231, 200, 120, 0.25);
  border-top-color: var(--gold-bright);
  border-radius: 50%;
  animation: isl-spin 0.9s linear infinite;
}
@keyframes isl-spin {
  to {
    transform: rotate(360deg);
  }
}
.isl-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(231, 200, 120, 0.4);
  border-radius: 50%;
  background: rgba(10, 8, 7, 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--gold-bright);
  transition: background-color 0.25s, color 0.25s, transform 0.3s var(--ease-out);
}
.isl-arrow:hover {
  background: var(--gold-bright);
  color: #1a1206;
}
.isl-arrow svg {
  width: 18px;
  height: 18px;
}
.isl-arrow--prev {
  left: 14px;
}
.isl-arrow--next {
  right: 14px;
}
.isl-arrow[hidden] {
  display: none;
}
.isl-count {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 3;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(10, 8, 7, 0.72);
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--gold-bright);
  font-variant-numeric: lining-nums tabular-nums;
}
.isl-tag {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(10, 8, 7, 0.72);
  border: 1px solid rgba(231, 200, 120, 0.4);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.isl-facade {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: #000;
}
.isl-facade img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.86;
  transition: opacity 0.4s, transform 1s var(--ease-expo);
}
.isl-facade:hover img {
  opacity: 1;
  transform: scale(1.02);
}
.isl-facade__btn {
  position: relative;
  z-index: 2;
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(10, 8, 7, 0.6);
  border: 1px solid rgba(231, 200, 120, 0.7);
  color: var(--gold-bright);
  transition: transform 0.4s var(--ease-out), background-color 0.3s, color 0.3s;
}
.isl-facade:hover .isl-facade__btn {
  transform: scale(1.08);
  background: var(--gold-bright);
  color: #1a1206;
}
.isl-facade__btn svg {
  width: 30px;
  height: 30px;
  margin-left: 4px;
}
.isl-facade__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 40px 20px 16px 84px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.85));
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(16px, 1.8vw, 22px);
  text-align: left;
}
.isl-levha__stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}
.isl-levha__thumbs {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  gap: 8px;
  padding-top: 12px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(231, 200, 120, 0.3) transparent;
}
.isl-thumb {
  position: relative;
  flex: 0 0 auto;
  width: 96px;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-3);
  opacity: 0.62;
  transition: opacity 0.25s, border-color 0.25s;
}
.isl-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.isl-thumb.is-light {
  background: #eee8db;
}
.isl-thumb:hover {
  opacity: 0.95;
}
.isl-thumb[aria-current="true"] {
  opacity: 1;
  border-color: var(--gold-bright);
  outline: 1px solid var(--gold-bright);
}
.isl-thumb .isl-thumb__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.35);
  color: var(--gold-bright);
}
.isl-thumb .isl-thumb__play svg {
  width: 20px;
  height: 20px;
}
.isl-levha__meta {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  display: grid;
  gap: 18px;
  align-content: center;
  min-width: 0;
}
.isl-levha__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 2.9vw, 42px);
  line-height: 1.1;
  text-wrap: balance;
}
.isl-levha__sub {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}
.isl-levha__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 6px;
  border-top: 1px solid var(--line-soft);
}
.isl-levha__nav a {
  display: grid;
  gap: 4px;
  padding: 14px 0 0;
  min-width: 0;
  transition: color 0.25s;
}
.isl-levha__nav a:last-child {
  text-align: right;
}
.isl-levha__nav small {
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.isl-levha__nav span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.25;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.isl-levha__nav a:hover span {
  color: var(--gold-bright);
}
.isl-levha__nav a[hidden] {
  visibility: hidden;
  display: block;
}
.isl-levha__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.isl-levha__tools .btn {
  padding: 11px 20px;
  font-size: 11px;
}
.isl-levha__tools .btn[hidden] {
  display: none;
}
.isl-levha__tools .btn[aria-pressed="true"] {
  border-color: var(--gold-bright);
  background: rgba(231, 200, 120, 0.1);
  color: var(--gold-bright);
}
.isl-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 130;
  transform: translate(-50%, 16px);
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--gold-bright);
  color: #1a1206;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.4s var(--ease-out);
}
.isl-toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------------------------------------------------------------- the work's own content (data/eser-icerik.js) */
.isl-levha__meta.has-icerik {
  align-self: stretch;
  align-content: start;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(8px, 4vh, 40px) 6px 8px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(231, 200, 120, 0.3) transparent;
}
.isl-levha__icerik {
  display: grid;
  gap: 18px;
  padding-top: 4px;
}
.isl-levha__icerik[hidden] {
  display: none;
}
.isl-levha__ozet {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(19px, 1.6vw, 23px);
  line-height: 1.35;
  color: var(--ink);
  text-wrap: pretty;
}
.isl-levha__kunye {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-soft);
}
.isl-levha__kunye > div {
  display: grid;
  grid-template-columns: minmax(84px, 34%) 1fr;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}
.isl-levha__kunye dt {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  padding-top: 3px;
}
.isl-levha__kunye dd {
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--ink);
}
.isl-levha__metin {
  display: grid;
  gap: 12px;
  font-size: 15px;
  line-height: 1.72;
  color: var(--muted);
  max-width: 58ch;
  overflow-wrap: anywhere;
}
.isl-levha__metin ul, .isl-levha__metin ol {
  padding-left: 1.4em;
}
.isl-levha__metin ul { list-style: disc; }
.isl-levha__metin ol { list-style: decimal; }
.isl-levha__metin a {
  color: var(--gold-bright);
  text-decoration: underline;
}
.isl-levha__metin blockquote {
  border-left: 2px solid var(--line);
  padding-left: 14px;
}
.isl-levha__metin img { max-width: 100%; height: auto; }
.isl-levha__metin pre { white-space: pre-wrap; }
.isl-levha__metin table { display: block; max-width: 100%; overflow-x: auto; }
.isl-levha__metin th, .isl-levha__metin td { padding: 4px 8px; }

@media (max-width: 900px) {
  .isl-levha__panel {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    align-content: start;
    overflow-y: auto;
    padding-top: 68px;
    row-gap: 4px;
  }
  .isl-levha__gallery {
    grid-column: 1;
    grid-row: 1;
    height: min(58svh, 100vw);
  }
  .isl-levha__thumbs {
    grid-row: 2;
  }
  .isl-levha__meta,
  .isl-levha__meta.has-icerik {
    grid-column: 1;
    grid-row: 3;
    align-self: start;
    overflow: visible;
    padding: 18px 0 32px;
  }
  .isl-thumb {
    width: 76px;
  }
  .isl-levha__thumbs {
    /* a scroll container's automatic min-height is 0: in the stacked phone layout the row collapsed to a hairline */
    min-height: 78px;
  }
  .isl-arrow {
    width: 42px;
    height: 42px;
    margin-top: -21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .isl-levha {
    transition-duration: 0.01s;
    animation-duration: 0.01s;
  }
}
