/* --- EHÖK R2 Event Gallery --- */

.glightbox-container ~ .tooltip,
body > .tooltip {
    z-index: 1000001;
}

.glightbox-container .gslide-description.description-bottom {
    padding: 8px 14px;
    background: rgba(0, 0, 0, 0.62);
    color: #fff;
    font-family: 'Poppins', sans-serif;
}

.glightbox-container .gslide-description.description-bottom .gdesc-inner {
    padding: 0;
}

.glightbox-container .gslide-description.description-bottom .gslide-desc {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    color: inherit;
    font-size: 13px;
    line-height: 1.4;
}

.glightbox-container .gslide-description.description-bottom .ehok-r2-gallery-description-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}

.glightbox-container .gslide-description.description-bottom .ehok-r2-gallery-description-separator {
    display: none;
}

.glightbox-container .gslide-description.description-bottom .ehok-r2-gallery-description-count {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.78);
    white-space: nowrap;
}

.glightbox-container .gcontainer .ehok-r2-download {
    position: absolute;
    top: 15px;
    right: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 35px;
    height: 35px;
    margin: 0;
    padding: 0;
    background-color: rgba(0, 0, 0, 0.75);
    border-radius: 4px;
    color: #fff;
    opacity: 0.8;
    text-decoration: none;
}

.glightbox-container .gcontainer .ehok-r2-download i {
    font-size: 18px;
    line-height: 1;
}

.glightbox-container .gcontainer .ehok-r2-download:hover,
.glightbox-container .gcontainer .ehok-r2-download:focus {
    opacity: 1;
}

.glightbox-container .gcontainer .ehok-r2-share {
    position: absolute;
    top: 15px;
    right: 106px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 35px;
    height: 35px;
    margin: 0;
    padding: 0;
    background-color: rgba(0, 0, 0, 0.75);
    border-radius: 4px;
    color: #fff;
    opacity: 0.8;
    text-decoration: none;
}

.glightbox-container .gcontainer .ehok-r2-share svg {
    width: 18px;
    height: auto;
}

.glightbox-container .gcontainer .ehok-r2-share path {
    fill: #fff;
}

.glightbox-container .gcontainer .ehok-r2-share:hover,
.glightbox-container .gcontainer .ehok-r2-share:focus {
    opacity: 1;
}

.glightbox-container .gcontainer .ehok-r2-favorite {
    position: absolute;
    top: 15px;
    right: 154px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 35px;
    height: 35px;
    border: 0;
    margin: 0;
    padding: 0 3px;
    background-color: rgba(0, 0, 0, 0.75);
    border-radius: 4px;
    color: #fff;
    gap: 3px;
    opacity: 0.8;
    cursor: pointer;
}

.glightbox-container .gcontainer .ehok-r2-favorite svg {
    width: 18px;
    height: auto;
}

.glightbox-container .gcontainer .ehok-r2-favorite path {
    fill: none;
    stroke: #fff;
    stroke-width: 1.8;
    stroke-linejoin: round;
}

.glightbox-container .gcontainer .ehok-r2-favorite:hover,
.glightbox-container .gcontainer .ehok-r2-favorite:focus-visible,
.glightbox-container .gcontainer .ehok-r2-favorite.is-active {
    opacity: 1;
}

.glightbox-container .gcontainer .ehok-r2-favorite.is-active path {
    fill: rgba(144, 212, 196, 0.95);
    stroke: rgba(144, 212, 196, 0.95);
}

.glightbox-container .gcontainer .ehok-r2-favorite-count {
    display: inline;
    flex: 0 0 auto;
    min-width: 0;
    color: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.glightbox-container .gcontainer .ehok-r2-favorite-count[hidden] {
    display: none;
}

.glightbox-container .gcontainer .ehok-r2-bulk-download {
    position: absolute;
    top: 15px;
    right: 202px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 35px;
    height: 35px;
    margin: 0;
    border: 0;
    padding: 0;
    background-color: rgba(0, 0, 0, 0.75);
    border-radius: 4px;
    color: #fff;
    opacity: 0.8;
    cursor: pointer;
}

.glightbox-container .gcontainer .ehok-r2-bulk-download i {
    font-size: 18px;
    line-height: 1;
}

.glightbox-container .gcontainer .ehok-r2-bulk-download:hover,
.glightbox-container .gcontainer .ehok-r2-bulk-download:focus-visible {
    opacity: 1;
}

.glightbox-container .gcontainer .ehok-r2-bulk-download:disabled {
    cursor: wait;
    opacity: 0.5;
}

.ehok-r2-gallery .ceg-gallery-card.ehok-r2-gallery-return-highlight {
    outline: 2px solid rgba(9, 43, 80, 0.72);
    outline-offset: 4px;
    background: rgba(144, 212, 196, 0.18);
}

.ehok-r2-selection-toggle {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    margin: 0 0 1rem;
    padding: 0.45rem 0.85rem;
    border: 0;
    border-radius: 50px;
    background: #092b50;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ehok-r2-selection-toggle:hover,
.ehok-r2-selection-toggle:focus-visible,
.ehok-r2-selection-toggle[aria-pressed="true"] {
    background: #f9a733;
    color: #fff;
    transform: translateY(-2px);
}

.ehok-r2-gallery.ehok-r2-selection-active .ceg-gallery-card {
    position: relative;
}

.ehok-r2-gallery.ehok-r2-selection-active .ceg-card-image {
    position: relative;
}

.ehok-r2-gallery.ehok-r2-selection-active .ceg-gallery-card.ehok-r2-gallery-card-favorite .ceg-card-image {
    box-shadow: inset 0 0 0 3px rgba(144, 212, 196, 0.95);
}

.ehok-r2-gallery.ehok-r2-selection-active .ceg-gallery-card.ehok-r2-gallery-card-favorite {
    outline: 2px solid rgba(144, 212, 196, 0.95);
    outline-offset: 3px;
}

.ehok-r2-gallery.ehok-r2-selection-active .ceg-gallery-card.ehok-r2-gallery-card-favorite .ceg-card-image::after {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: grid;
    width: 1.65rem;
    height: 1.65rem;
    place-items: center;
    border-radius: 50%;
    background: rgba(9, 43, 80, 0.9);
    color: #fff;
    content: "\2713";
    font-size: 1rem;
    font-weight: 700;
    pointer-events: none;
}

.ehok-r2-selection-bar {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    z-index: 1040;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 780px;
    margin: 0 auto;
    padding: 0.7rem 0.8rem 0.7rem 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    background: #092b50;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
    font-family: 'Poppins', sans-serif;
    color: #fff;
}

.ehok-r2-selection-count {
    font-size: 0.9rem;
    font-weight: 600;
}

.ehok-r2-selection-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-left: auto;
}

.ehok-r2-selection-download,
.ehok-r2-selection-clear,
.ehok-r2-selection-finish {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 34px;
    min-height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.92);
    color: #092b50;
    cursor: pointer;
}

.ehok-r2-selection-download i,
.ehok-r2-selection-clear i,
.ehok-r2-selection-finish i {
    font-size: 17px;
    line-height: 1;
}

.ehok-r2-selection-download:hover,
.ehok-r2-selection-download:focus-visible,
.ehok-r2-selection-clear:hover,
.ehok-r2-selection-clear:focus-visible,
.ehok-r2-selection-finish:hover,
.ehok-r2-selection-finish:focus-visible {
    background: #f9a733;
    color: #092b50;
    transform: translateY(-2px);
}

.ehok-r2-selection-download:disabled {
    cursor: wait;
    opacity: 0.55;
}

.ehok-r2-selection-clear:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

@media (max-width: 768px) {
    .glightbox-mobile .glightbox-container .gslide.current .gslide-description.description-bottom {
        position: relative;
        bottom: auto;
        order: 3;
        flex: 0 0 auto;
        max-height: none;
        overflow: visible;
        padding: 8px;
    }

    .glightbox-container .gcontainer .ehok-r2-download {
        top: 14px;
        right: 52px;
    }

    .glightbox-container .gcontainer .ehok-r2-share {
        top: 14px;
        right: 94px;
    }

    .glightbox-container .gcontainer .ehok-r2-favorite {
        top: 14px;
        right: 136px;
    }

    .glightbox-container .gcontainer .ehok-r2-bulk-download {
        top: 14px;
        right: 178px;
    }

    .ehok-r2-selection-bar {
        right: 0.65rem;
        bottom: 0.65rem;
        left: 0.65rem;
        padding-left: 0.8rem;
    }

}

.ehok-r2-gallery-section {
    margin-top: 1rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(9, 43, 80, 0.08);
}

.ehok-r2-gallery-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.4rem, 2.8vw, 2rem);
    font-weight: 700;
    color: var(--ehok-blue, #092b50);
    text-transform: uppercase;
    text-align: left;
    margin: 0;
    letter-spacing: 0.04em;
}

.ehok-r2-gallery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ehok-r2-gallery-header .ehok-r2-selection-toggle {
    flex: 0 0 auto;
    margin-bottom: 0;
}

.ceg-gallery-container.ehok-r2-gallery {
    width: 100%;
    margin: 0;
}

.ehok-r2-gallery .ceg-day-filter {
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

.ehok-r2-gallery .ceg-day-btn {
    background: transparent;
    border: 1px solid rgba(9, 43, 80, 0.2);
    padding: 9px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: var(--ehok-blue, #092b50);
}

.ehok-r2-gallery .ceg-day-btn:hover,
.ehok-r2-gallery .ceg-day-btn.active {
    background: var(--ehok-blue, #092b50);
    color: #fff;
    border-color: var(--ehok-blue, #092b50);
}

.ehok-r2-gallery .ceg-status {
    min-height: 24px;
    text-align: left;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #777;
    margin-bottom: 18px;
}

.ehok-r2-gallery.ceg-loading .ceg-post-grid {
    opacity: 0.45;
    pointer-events: none;
}

.ehok-r2-gallery .ceg-post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.ehok-r2-gallery .ceg-gallery-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.ehok-r2-gallery .ceg-gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.ehok-r2-gallery .ceg-card-image {
    position: relative;
    width: 100%;
    padding-top: 70%;
    background: #f4f4f4;
    overflow: hidden;
}

.ehok-r2-gallery .ceg-card-image a {
    position: absolute;
    inset: 0;
    display: block;
    text-decoration: none;
}

.ehok-r2-gallery .ceg-card-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ehok-r2-gallery .ceg-gallery-card:hover .ceg-card-image img {
    transform: scale(1.05);
}

.ehok-r2-gallery .ceg-card-cat {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--ehok-blue, #092b50);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 2px;
    font-weight: 600;
    z-index: 2;
    pointer-events: none;
}

.ehok-r2-gallery .ceg-card-content {
    padding: 14px 18px 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ehok-r2-gallery .ceg-meta-top {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    color: #888;
    font-weight: 550;
    margin-bottom: 0;
}

.ehok-r2-gallery .ceg-load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 34px;
}

.ehok-r2-gallery .ceg-load-more-btn {
    background: var(--ehok-blue, #092b50);
    color: #fff;
    border: 1px solid var(--ehok-blue, #092b50);
    padding: 11px 28px;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.ehok-r2-gallery .ceg-load-more-btn:hover {
    background: #061d36;
    border-color: #061d36;
    transform: translateY(-2px);
}

.ehok-r2-gallery .ceg-load-more-btn[hidden] {
    display: none;
}

.ehok-r2-gallery .ceg-empty,
.ehok-r2-gallery .ceg-error {
    grid-column: 1 / -1;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    color: #777;
    padding: 30px 10px;
}

.ehok-r2-gallery .ceg-error {
    color: #a40000;
}

@media (max-width: 768px) {
    .ehok-r2-gallery .ceg-post-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 18px;
    }

    .ehok-r2-gallery .ceg-card-content {
        padding: 12px 14px 14px;
    }

    .ehok-r2-gallery .ceg-day-btn {
        padding: 8px 18px;
    }
}

@media (max-width: 480px) {
    .ehok-r2-gallery .ceg-post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .ehok-r2-gallery .ceg-card-image {
        padding-top: 78%;
    }

    .ehok-r2-gallery .ceg-card-cat {
        top: 10px;
        left: 10px;
        font-size: 9px;
        padding: 3px 8px;
    }

    .ehok-r2-gallery .ceg-card-content {
        display: none;
    }
}

@media (max-width: 768px) {
    .ehok-r2-gallery-header {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .ehok-r2-gallery-header .ehok-r2-gallery-title {
        flex: 1 1 220px;
    }
}
