/* Location Gallery Styles */
.gallery-main {
    position: relative;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.gallery-main-image {
    position: relative;
    height: 500px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.gallery-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    pointer-events: none;
    z-index: 3;
}

.gallery-nav, .gallery-fullscreen {
    background: rgba(0,0,0,0.8);
    color: white;
    border: none;
    border-radius: 25px;
    width: 45px;
    height: 45px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: auto;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.gallery-nav:hover, .gallery-fullscreen:hover {
    background: rgba(0,0,0,0.9);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.gallery-counter {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: #ccc #f1f1f1;
}

.gallery-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.gallery-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.gallery-thumbnail:hover {
    opacity: 1;
    transform: scale(1.05);
}

.gallery-thumbnail.active {
    border-color: #007cba;
    opacity: 1;
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fullscreen Modal */
.fullscreen-gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fullscreen-gallery-modal.active {
    display: flex;
    opacity: 1;
}

.fullscreen-gallery-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.fullscreen-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.fullscreen-close:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.fullscreen-main-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-height: 80vh;
}

.fullscreen-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fullscreen-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    pointer-events: none;
}

.fullscreen-nav {
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.fullscreen-nav:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.fullscreen-counter {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
}

.fullscreen-thumbnails {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    max-width: 80%;
    overflow-x: auto;
    padding: 10px;
    background: rgba(0,0,0,0.5);
    border-radius: 25px;
}

.fullscreen-thumbnail {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.fullscreen-thumbnail:hover {
    opacity: 1;
    transform: scale(1.1);
}

.fullscreen-thumbnail.active {
    border-color: #007cba;
    opacity: 1;
}

.fullscreen-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-main-image {
        height: 300px;
    }
    
    .gallery-nav, .gallery-fullscreen {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .gallery-controls {
        bottom: 15px;
        gap: 12px;
    }
    
    .gallery-counter {
        top: 15px;
        right: 15px;
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .gallery-thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .fullscreen-nav {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .fullscreen-thumbnail {
        width: 50px;
        height: 50px;
    }
    
    .fullscreen-thumbnails {
        bottom: 60px;
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .gallery-main-image {
        height: 250px;
    }
    
    .gallery-controls {
        bottom: 10px;
        gap: 10px;
    }
    
    .gallery-nav, .gallery-fullscreen {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
    
    .gallery-counter {
        top: 10px;
        right: 10px;
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .gallery-thumbnail {
        width: 50px;
        height: 50px;
    }
}

/* Event and Subscription Image Styles */
.events-grid,
.subscriptions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.event-card,
.subscription-card {
    min-height: 300px;
    min-width: 300px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover,
.subscription-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.event-card a,
.subscription-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.event-card img,
.subscription-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.event-card .date,
.subscription-card .date {
    position: absolute;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    z-index: 2;
}

.event-card .date {
    top: 15px;
    left: 15px;
}

.subscription-card .date-start {
    top: 15px;
    left: 15px;
}

.subscription-card .date-end {
    top: 15px;
    right: 15px;
}

.event-card .info,
.subscription-card .info {
    padding: 20px;
}

.event-card .info p,
.subscription-card .info p {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 500;
}

.event-card .info a,
.subscription-card .info a {
    color: #333;
    text-decoration: none;
}

.event-card .info a:hover,
.subscription-card .info a:hover {
    color: #007cba;
}

.get-ticket,
.sold-out {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
}

.get-ticket {
    background: #007cba;
    color: white;
}

.get-ticket:hover {
    background: #005a8b;
    transform: translateY(-2px);
}

.sold-out {
    background: #dc3545;
    color: white;
    cursor: not-allowed;
}

.sold-out:hover {
    background: #c82333;
}

/* Responsive adjustments for events and subscriptions */
@media (max-width: 768px) {
    .events-grid,
    .subscriptions-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .event-card img,
    .subscription-card img {
        max-height: 250px;
    }
    
    .event-card .info,
    .subscription-card .info {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .events-grid,
    .subscriptions-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .event-card img,
    .subscription-card img {
        max-height: 200px;
    }
    
    .event-card .date,
    .subscription-card .date-start,
    .subscription-card .date-end {
        font-size: 12px;
        padding: 6px 10px;
    }
}
