/* =========================================================
   DOSTLARIMIZ · DİNAMİK GALERİ
   Mevcut header / footer / hero stillerine dokunmaz.
========================================================= */

.friends-gallery-section {
    padding: 78px 0 84px;
    background: #f8f6f1;
}

.friends-gallery-section .friends-container,
.friends-note .friends-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.friends-heading {
    max-width: 760px;
    margin: 0 auto 34px;
    text-align: center;
}

.friends-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #d65b28;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
}

.friends-heading h2,
.friends-gallery-detail-head h2 {
    margin: 0 0 14px;
    color: #28343b;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.12;
    font-weight: 800;
}

.friends-heading p,
.friends-gallery-detail-head p {
    margin: 0;
    color: #697278;
    font-size: 15px;
    line-height: 1.75;
}

.friends-gallery-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
    margin: 0 auto 34px;
}

.friends-gallery-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 17px;
    border: 1px solid #ded9d0;
    border-radius: 999px;
    background: #fff;
    color: #596269;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: .2s ease;
}

.friends-gallery-tabs a:hover,
.friends-gallery-tabs a.is-active {
    border-color: #d65b28;
    background: #d65b28;
    color: #fff;
}

.friends-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.friends-gallery-card {
    display: block;
    overflow: hidden;
    border: 1px solid #e6e1d9;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(37, 45, 49, .06);
    color: inherit;
    text-decoration: none;
    transition: transform .22s ease, box-shadow .22s ease;
}

.friends-gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 42px rgba(37, 45, 49, .11);
}

.friends-gallery-cover {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #eeeae3;
}

.friends-gallery-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.friends-gallery-card:hover .friends-gallery-cover img {
    transform: scale(1.035);
}

.friends-gallery-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: #c3beb5;
    font-size: 44px;
}

.friends-gallery-arrow {
    position: absolute;
    right: 15px;
    bottom: 15px;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.94);
    color: #d65b28;
    box-shadow: 0 5px 16px rgba(0,0,0,.12);
}

.friends-gallery-card-body {
    padding: 21px 22px 22px;
}

.friends-gallery-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    color: #d65b28;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.friends-gallery-card h3 {
    margin: 0 0 14px;
    color: #2b373e;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 800;
}

.friends-gallery-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #727a7f;
    font-size: 12px;
    font-weight: 700;
}

.friends-gallery-link i {
    color: #d65b28;
    transition: transform .2s ease;
}

.friends-gallery-card:hover .friends-gallery-link i {
    transform: translateX(3px);
}

.friends-gallery-detail-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 34px;
    padding-bottom: 27px;
    border-bottom: 1px solid #e3ded5;
}

.friends-back-button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #ddd8cf;
    color: #596269;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.friends-back-button:hover {
    border-color: #d65b28;
    color: #d65b28;
}

.friends-photo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.friends-photo-card {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 15px;
    aspect-ratio: 1 / 1;
    background: #e9e5dd;
    cursor: pointer;
}

.friends-photo-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.friends-photo-card:hover img {
    transform: scale(1.04);
}

.friends-photo-zoom {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.94);
    color: #d65b28;
    opacity: 0;
    transform: translateY(5px);
    transition: .2s ease;
}

.friends-photo-card:hover .friends-photo-zoom {
    opacity: 1;
    transform: translateY(0);
}

.friends-empty {
    padding: 54px 25px;
    border: 1px dashed #d8d2c9;
    border-radius: 18px;
    background: #fff;
    text-align: center;
}

.friends-empty-icon {
    display: grid;
    width: 56px;
    height: 56px;
    margin: 0 auto 15px;
    place-items: center;
    border-radius: 50%;
    background: #f5e9df;
    color: #d65b28;
    font-size: 21px;
}

.friends-empty h3 {
    margin: 0 0 7px;
    color: #303c42;
    font-size: 20px;
}

.friends-empty p {
    max-width: 520px;
    margin: 0 auto;
    color: #7a8185;
    font-size: 13px;
    line-height: 1.7;
}

.friends-note {
    padding: 0 0 82px;
    background: #f8f6f1;
}

.friends-note-card {
    display: flex;
    align-items: center;
    gap: 17px;
    padding: 23px 27px;
    border: 1px solid #e3ddd4;
    border-radius: 17px;
    background: #fff;
}

.friends-note-icon {
    display: grid;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 50%;
    background: #f7e9df;
    color: #d65b28;
}

.friends-note-card strong {
    display: block;
    margin-bottom: 4px;
    color: #303b41;
    font-size: 15px;
}

.friends-note-card p {
    margin: 0;
    color: #747c81;
    font-size: 12px;
    line-height: 1.6;
}

.friends-lightbox {
    position: fixed;
    z-index: 9999;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 35px;
    background: rgba(18, 23, 26, .88);
    opacity: 0;
    visibility: hidden;
    transition: .2s ease;
}

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

.friends-lightbox-inner {
    max-width: min(1100px, 92vw);
    max-height: 90vh;
    text-align: center;
}

.friends-lightbox-inner img {
    display: block;
    max-width: 100%;
    max-height: 78vh;
    margin: auto;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 20px 70px rgba(0,0,0,.3);
}

.friends-lightbox-inner p {
    margin: 12px 0 0;
    color: #fff;
    font-size: 13px;
}

.friends-lightbox-close {
    position: absolute;
    top: 20px;
    right: 22px;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

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

@media (max-width: 900px) {
    .friends-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .friends-photo-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .friends-gallery-detail-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .friends-gallery-section {
        padding: 58px 0 65px;
    }

    .friends-gallery-section .friends-container,
    .friends-note .friends-container {
        width: min(100% - 28px, 1180px);
    }

    .friends-gallery-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .friends-photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .friends-gallery-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 5px;
    }

    .friends-gallery-tabs a {
        flex: 0 0 auto;
    }

    .friends-note {
        padding-bottom: 60px;
    }

    .friends-note-card {
        align-items: flex-start;
        padding: 20px;
    }

    .friends-lightbox {
        padding: 18px;
    }
}
/* =========================================================
   DOSTLARIMIZ · HERO
========================================================= */

.friends-hero {
    background-image:
        linear-gradient(
            90deg,
            rgba(20, 28, 32, .58),
            rgba(20, 28, 32, .22)
        ),
        url("/assets/images/bg/hipder-dostlarimiz-bg.webp") !important;

    background-position: center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
}