#gallery * {
    box-sizing: border-box;
}
.info-bar {
    text-align: center;
}
.download-link {
    display:block;
}

.counter-text {
    color: #000000;
}



.gad-gallery {
    grid-gap: 1.5rem;
    align-items: stretch;
    column-count: 1;
}

@media (min-width: 576px) {
    .gad-gallery {
        column-count: 2;
    }
}

@media (min-width: 992px) {
    .gad-gallery {
        column-count: 4;
    }
}


.gad-gallery .gad-item {
    width: 100%;
    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 1rem;
}

.gad-item img.gad-thumb {
    width: 100%;
    height: auto;
    object-fit: cover;
    box-shadow: 2px 2px 7px 0 rgba(0,0,0,0.5);
}

.video-indicator {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 1.5rem;
    height: 1.5rem;
}

.thumb-card {
    position: relative;
    height: fit-content;
}
/* modal ------------ */
.g-modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4); /* Black with opacity */
    align-content: center;
    justify-content: center;
    flex-wrap: wrap;
}

.g-modal.g-show {
    display: flex;
}

.g-modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    width: 80%;
    max-width: 500px;
    box-shadow: 0px 5px 15px rgba(0,0,0,0.3);
    height: fit-content;
}

.g-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 5px;
    right: 12px;
}

.g-close:hover,
.g-close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

a[hx-get] {
    cursor: pointer;
}

/* Pulse animation */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* When the icon is in the 'working' state, apply the pulse animation */
a.htmx-request, .pulse {
    animation: pulse 1s infinite;
}

.pswp-media {
    width: 100%;
    height: 100%;
}

.gad-hide {
    display: none;
}

#gallery > p {
    color: #000;
}

.btn-accent {
    --bs-btn-font-weight: 600;
    --bs-btn-color: var(--text-color);
    --bs-btn-bg: var(--primary-color);
    --bs-btn-border-color: var(--primary-color);
    --bs-btn-hover-color: var(--text-color);
    --bs-btn-hover-bg: var(--primary-color-10);
    --bs-btn-hover-border-color: var(--primary-color-10);
    --bs-btn-focus-shadow-rgb: var(--primary-color-rgb);
    --bs-btn-active-color: var(--text-color);
    --bs-btn-active-bg: var(--primary-color-20);
    --bs-btn-active-border-color: var(--primary-color-20);
}