.yakup-gallery {
    max-width: 1120px;
    margin-inline: auto;
    color: #2b2118;
}

.yakup-gallery section + section {
    margin-top: clamp(32px, 6vw, 64px);
}

.yakup-gallery h2 {
    margin: 0 0 18px;
    padding-bottom: 8px;
    border-bottom: 1px solid #d8be98;
    color: #39291c;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.2;
}

.yakup-gallery-videos,
.yakup-gallery-photos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(10px, 1.8vw, 20px);
}

.yakup-gallery-video {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e6d8c3;
    border-radius: 8px;
    background: #fcf9f3;
}

.yakup-gallery-video h3 {
    margin: 0;
    padding: 10px 12px;
    color: #39291c;
    font-family: 'Open Sans', sans-serif;
    font-size: clamp(13px, 1.35vw, 16px);
    font-weight: 700;
    line-height: 1.4;
}

.yakup-gallery-cover,
.yakup-gallery-video video,
.yakup-gallery-photo {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #211b16;
}

.yakup-gallery-cover img,
.yakup-gallery-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yakup-gallery-video video {
    height: auto;
    object-fit: contain;
}

.yakup-gallery-play,
.yakup-gallery-zoom {
    position: absolute;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgb(24 18 12 / 82%);
    color: #fff;
    line-height: 1;
}

.yakup-gallery-play {
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    transform: translate(-50%, -50%);
    border: 1px solid #f1d7ad;
}

.yakup-gallery-play::after {
    content: '';
    margin-left: 3px;
    border-block: 7px solid transparent;
    border-left: 11px solid currentColor;
}

.yakup-gallery-photo {
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4 / 3;
}

.yakup-gallery-featured {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 10;
}

.yakup-gallery-zoom {
    right: 9px;
    bottom: 9px;
    width: 30px;
    height: 30px;
    font-size: 20px;
}

.yakup-gallery :is(a, button, video):focus-visible {
    outline: 2px solid #9a6d36;
    outline-offset: 3px;
}

.yakup-gallery-cover:focus-visible {
    outline-offset: -4px;
}

.yakup-gallery-cover:hover .yakup-gallery-play,
.yakup-gallery-photo:hover .yakup-gallery-zoom {
    background: #65441e;
}

.yakup-gallery-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: clamp(24px, 4vw, 44px) 0 4px;
}

.yakup-gallery-dialog:not([open]) {
    display: none;
}

.yakup-gallery-dialog {
    position: fixed;
    inset: 0;
    width: min(96vw, 1080px);
    max-height: 94dvh;
    margin: auto;
    padding: 8px clamp(6px, 1.5vw, 16px) 12px;
    border: 1px solid #806847;
    border-radius: 10px;
    background: #1c1712;
    color: #fff8ec;
}

.yakup-gallery-dialog::backdrop {
    background: rgb(18 14 10 / 88%);
}

body:has(.yakup-gallery-dialog[open]) {
    overflow: hidden;
}

.yakup-gallery-stage {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    gap: clamp(3px, 1vw, 10px);
}

.yakup-gallery-stage img {
    width: 100%;
    height: min(71dvh, 720px);
    object-fit: contain;
}

.yakup-gallery-dialog button {
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    border: 1px solid #987b55;
    border-radius: 50%;
    background: #37291d;
    color: inherit;
    font: 400 28px/1 sans-serif;
}

.yakup-gallery-dialog button:hover {
    background: #65441e;
}

.yakup-gallery-close {
    margin: 0 0 6px auto;
}

@media (min-width: 768px) {
    .yakup-gallery-photos {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .yakup-gallery-featured {
        aspect-ratio: 21 / 9;
    }
}

@media (min-width: 992px) {
    .yakup-gallery-videos {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
