﻿.expol-photos-title {
    margin-bottom: 20px;
    color: #2f5597;
    font-size: 1.75rem;
}

.expol-photos-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 16px;
}

.expol-photo-card {
    min-width: 0;
}

.expol-photo-image {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    background: #f3f3f3;
}

.expol-photo-open {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

    .expol-photo-open img {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
        object-fit: cover;
    }

.expol-photo-download {
    position: absolute;
    right: 7px;
    bottom: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    text-decoration: none;
}

    .expol-photo-download:hover,
    .expol-photo-download:focus {
        background: #2f5597;
        color: #fff;
    }

    .expol-photo-open:focus-visible,
    .expol-photo-download:focus-visible,
    .expol-photo-close:focus-visible {
        outline: 3px solid #fd7e14;
        outline-offset: -3px;
    }

.expol-photo-name {
    margin-top: 6px;
    overflow-wrap: anywhere;
    text-align: center;
    font-size: 0.8rem;
    color: #333;
}

.expol-photo-preview {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 60px 20px 20px;
    border: 0;
    background: transparent;
    overflow: auto;
}

    .expol-photo-preview[open] {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .expol-photo-preview::backdrop {
        background: rgba(0, 0, 0, 0.9);
    }

    .expol-photo-preview img {
        display: block;
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

.expol-photo-close {
    position: absolute;
    top: 10px;
    right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
}

body.expol-preview-open {
    overflow: hidden;
}

@media (max-width: 1199px) {
    .expol-photos-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .expol-photos-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .expol-photos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .expol-photo-preview {
        padding: 60px 10px 15px;
    }
}
.expol-pager {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

    .expol-pager .pagination {
        flex-wrap: wrap;
    }

    .expol-pager .page-link {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 38px;
        height: 38px;
    }

.expol-page-size {
    height: 38px;
    min-width: 70px;
    padding: 0 10px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background-color: white;
    color: #333;
    cursor: pointer;
}