/* ── Kartochkalar (ro'yxat) — rasm to'liq, crop yo'q ── */
.galery-img-wrap--card {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 10px;
    overflow: hidden;
}

.galery-img--card {
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: contain;
    display: block;
}

.portfolio-page__img .galery-img-wrap--card,
.news-one__img .galery-img-wrap--card {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.portfolio-page__img .page-media-trigger {
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    display: block;
    cursor: zoom-in;
}

/* ── Batafsil sahifa — rasm atrofida fon rangsiz ── */
.galery-img-wrap--detail {
    width: fit-content;
    max-width: 100%;
    margin: 0 0 24px;
    display: block;
    background: transparent !important;
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

.galery-img--detail {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 72vh;
    object-fit: unset;
    display: block;
    background: transparent !important;
}

.news-details__img .galery-img-wrap--detail,
.department-details__img .galery-img-wrap--detail {
    width: 100%;
    max-width: 100%;
}

.department-details__img-btn {
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    cursor: zoom-in;
    display: block;
}

.detail-page__body {
    margin-top: 8px;
}

/* ── Batafsil: hashtag, ko'rish, yoqtirish — oddiy matn + ikonka ── */
.detail-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-top: 24px;
}

.detail-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    border-radius: 0;
    font-size: 15px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.85);
}

.detail-meta-item i {
    font-size: 15px;
    opacity: 0.9;
}

.detail-meta-hashtag {
    color: #4ade80;
    text-decoration: none;
    font-weight: 600;
}

.detail-meta-hashtag:hover {
    color: #86efac;
    text-decoration: underline;
}

.detail-meta-hashtag i {
    color: #4ade80;
}

.detail-meta-views i {
    color: #93c5fd;
}

.detail-meta-like {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.detail-meta-like i {
    color: #fda4af;
}

.detail-meta-like:hover:not(:disabled) {
    opacity: 0.85;
}

.detail-meta-like:disabled {
    cursor: default;
}

.detail-meta-like.is-liked i {
    color: #f87171;
}

.detail-meta-like.is-liked {
    color: rgba(255, 255, 255, 0.85);
}

.project-detail-video {
    width: 100%;
    max-width: 960px;
    border-radius: 12px;
    background: #000;
}

.project-video-open-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 12px 22px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.project-video-open-btn i {
    font-size: 20px;
    color: #93c5fd;
}

.project-video-open-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(147, 197, 253, 0.5);
}

.detail-meta-site {
    color: #86efac;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.detail-meta-site i {
    color: #86efac;
}

.detail-meta-site:hover {
    opacity: 0.85;
    color: #bbf7d0;
}

/* ── Loyiha batafsil: chap rasm, o'ng ma'lumot ── */
.project-details-page {
    padding-top: 60px;
    padding-bottom: 80px;
}

.project-detail-layout {
    align-items: flex-start;
}

.project-detail-layout__media {
    margin-bottom: 28px;
}

.project-detail-media__frame {
    position: relative;
    width: fit-content;
    max-width: 100%;
    background: transparent !important;
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

.project-details-page .galery-img-wrap--detail {
    margin: 0;
    width: fit-content;
    max-width: 100%;
}

.project-details-page .galery-img--detail {
    width: auto;
    max-width: 100%;
    max-height: 520px;
    height: auto;
    object-fit: unset;
    display: block;
    background: transparent !important;
}

.project-detail-zoom-btn {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.project-detail-zoom-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.05);
}

.project-detail-body {
    padding-left: 0;
}

@media (min-width: 992px) {
    .project-detail-body {
        padding-left: 12px;
    }

    .project-detail-layout__media {
        margin-bottom: 0;
    }
}

@media (max-width: 767px) {
    .project-details-page .galery-img--detail {
        max-height: 360px;
    }
}

/* ── Fotolavha batafsil: markazda, chap rasm / o'ng matn ── */
.galery-detail-page .project-detail-layout {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 32px 40px;
    max-width: 1140px;
    margin: 0 auto;
}

.galery-detail-page .project-detail-layout__media {
    flex: 0 0 auto;
    width: min(540px, 100%);
    margin-bottom: 0;
}

.galery-detail-page .project-detail-layout__body {
    flex: 1 1 300px;
    max-width: 480px;
    min-width: 0;
}

.galery-detail-page .project-detail-media__frame {
    width: 100%;
    max-width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
}

.galery-detail-page .galery-img-wrap--detail {
    width: 100%;
    max-width: 100%;
}

.galery-detail-page .galery-img--detail {
    width: 100%;
    max-width: 100%;
    max-height: 620px;
    height: auto;
    object-fit: contain;
}

.galery-detail-page .project-detail-body {
    padding-left: 0;
}

@media (min-width: 992px) {
    .galery-detail-page .project-detail-body {
        padding-left: 0;
    }
}

@media (max-width: 991px) {
    .galery-detail-page .project-detail-layout {
        flex-direction: column;
        align-items: center;
        gap: 28px;
    }

    .galery-detail-page .project-detail-layout__media,
    .galery-detail-page .project-detail-layout__body {
        width: 100%;
        max-width: 640px;
    }
}

/* ── Kartochka hashtag (view/like yo'q) ── */
.galery-card-hashtag {
    margin-top: 8px;
}

.galery-card-hashtag a {
    color: #059669;
    font-size: 14px;
    text-decoration: none;
}

.galery-card-hashtag a:hover {
    text-decoration: underline;
}

.galery-filter-title {
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.9);
}

.galery-filter-title span {
    color: #4ade80;
    font-weight: 600;
}

.galery-filter-title a {
    color: #93c5fd;
    text-decoration: none;
}

.galery-filter-title a:hover {
    text-decoration: underline;
}

.news-page .news-one__single {
    margin-bottom: 30px;
}

/* 1 qatorda 5 ta yangilik */
.news-page .row.news {
    display: flex;
    flex-wrap: wrap;
    margin-left: -10px;
    margin-right: -10px;
}

.news-page .row.news > .news-grid-col {
    flex: 0 0 20%;
    max-width: 20%;
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
}

@media (max-width: 1199px) {
    .news-page .row.news > .news-grid-col {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

@media (max-width: 991px) {
    .news-page .row.news > .news-grid-col {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

@media (max-width: 767px) {
    .news-page .row.news > .news-grid-col {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 479px) {
    .news-page .row.news > .news-grid-col {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* 1 qatorda 4 ta loyiha */
.news-page .row.project-list {
    display: flex;
    flex-wrap: wrap;
    margin-left: -10px;
    margin-right: -10px;
}

.news-page .row.project-list > .project-grid-col {
    flex: 0 0 25%;
    max-width: 25%;
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
}

@media (max-width: 1199px) {
    .news-page .row.project-list > .project-grid-col {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

@media (max-width: 991px) {
    .news-page .row.project-list > .project-grid-col {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

@media (max-width: 767px) {
    .news-page .row.project-list > .project-grid-col {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 479px) {
    .news-page .row.project-list > .project-grid-col {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.news-page .news-one__content {
    padding-top: 16px;
    background: transparent !important;
    box-shadow: none !important;
}

/* Rasm — fon rangsiz, to'liq ko'rinsin */
.news-page .news-one__img-box,
.news-page .news-one__img {
    background: transparent !important;
}

.news-page .news-one__img:before {
    display: none !important;
}

.news-page .news-one__img .galery-img-wrap--card {
    background: transparent !important;
}

.news-page .news-one__single:hover .galery-img--card {
    transform: scale(1.02);
}

.news-page .news-one__single:hover .news-one__img img {
    transform: none;
}

.news-page .news-one__title {
    font-size: 15px;
    line-height: 1.35;
    margin-bottom: 8px;
}

.news-one__img .galery-img--card,
.portfolio-page__img .galery-img--card {
    transition: transform 0.35s ease;
}

.news-one__single:hover .galery-img--card {
    transform: scale(1.03);
}

/* ── Fotolavhalar sahifasi — 1 qatorda 4 ta, yangi kartochka ── */
.galery-page {
    padding-top: 56px;
    padding-bottom: 80px;
}

.galery-page .row.galery-list {
    display: flex;
    flex-wrap: wrap;
    margin-left: -12px;
    margin-right: -12px;
}

.galery-page .row.galery-list > .galery-grid-col {
    flex: 0 0 25%;
    max-width: 25%;
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
    margin-bottom: 28px;
}

@media (max-width: 1199px) {
    .galery-page .row.galery-list > .galery-grid-col {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

@media (max-width: 991px) {
    .galery-page .row.galery-list > .galery-grid-col {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

@media (max-width: 767px) {
    .galery-page .row.galery-list > .galery-grid-col {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 479px) {
    .galery-page .row.galery-list > .galery-grid-col {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.galery-page-empty {
    text-align: center;
    color: rgba(255, 255, 255, 0.65);
    padding: 48px 16px;
    margin: 0;
}

.galery-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: transparent;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.galery-card:hover {
    transform: translateY(-4px);
    border-color: rgba(12, 165, 84, 0.55);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.galery-card__media {
    position: relative;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.galery-card__trigger {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    cursor: zoom-in;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.galery-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: transparent !important;
    transition: transform 0.35s ease;
}

.galery-card:hover .galery-card__img {
    transform: scale(1.05);
}

.galery-card__zoom {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.32);
    color: #fff;
    font-size: 26px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.galery-card:hover .galery-card__zoom {
    opacity: 1;
}

.galery-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 14px 16px 16px;
    background: transparent;
    border-top: none;
}

.galery-card__title {
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 600;
}

.galery-card__title a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    transition: color 0.2s ease;
}

.galery-card__title a:hover {
    color: #4ade80;
}

.galery-card__tag {
    margin-bottom: 12px;
}

.galery-card__tag a {
    color: #059669;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.galery-card__tag a:hover {
    color: #4ade80;
    text-decoration: underline;
}

.galery-card__actions {
    margin-top: auto;
    padding-top: 4px;
}

.galery-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #0ca554;
    text-decoration: none;
    transition: color 0.2s ease, gap 0.2s ease;
}

.galery-card__link:hover {
    color: #4ade80;
    gap: 10px;
}

.galery-card__link i {
    font-size: 12px;
}

/* ── Videolavhalar sahifasi — 1 qatorda 3 ta, play markazda ── */
.video-page {
    padding-top: 56px;
    padding-bottom: 80px;
}

.video-page .row.video-list {
    display: flex;
    flex-wrap: wrap;
    margin-left: -12px;
    margin-right: -12px;
}

.video-page .row.video-list > .video-grid-col {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
    margin-bottom: 28px;
}

@media (max-width: 991px) {
    .video-page .row.video-list > .video-grid-col {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 575px) {
    .video-page .row.video-list > .video-grid-col {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.video-page-empty {
    text-align: center;
    color: rgba(255, 255, 255, 0.65);
    padding: 48px 16px;
    margin: 0;
}

.video-card {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-4px);
    border-color: rgba(12, 165, 84, 0.45);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.video-card__media {
    position: relative;
    background: transparent;
}

.video-card__trigger {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
}

.video-card__thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    background: transparent;
    transition: transform 0.35s ease;
}

.video-card:hover .video-card__thumb {
    transform: scale(1.04);
}

.video-card__play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.28);
    pointer-events: none;
    transition: background 0.3s ease;
}

.video-card:hover .video-card__play-overlay {
    background: rgba(12, 165, 84, 0.35);
}

.video-card__play-overlay .video-one__video-icon {
    margin: 0;
}
