/* Workshop Card Styles */
.workshop-card {
    transition: all 0.5s ease;
}

.workshop-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.workshop-card .btn {
    transition: all 0.5s ease;
}

.workshop-card .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* Media Modal Styles (Unified for Images and Videos) */
.media-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.media-modal.open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
}

.media-wrapper {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-wrapper img,
.media-wrapper video {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.media-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 40px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 30;
}

.media-modal-close:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Workshop video cursor */
.workshop-video {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.workshop-video:hover {
    transform: scale(1.02);
}

/* Video Grid Styles */
.video-grid {
    display: grid;
    gap: 8px;
    margin-bottom: 15px;
}

.video-grid.videos-1 {
    grid-template-columns: 1fr;
}

.video-grid.videos-2 {
    grid-template-columns: 1fr 1fr;
}

.video-grid.videos-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.video-grid.videos-4 {
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.video-item {
    position: relative;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
}

.video-item:hover {
    transform: scale(1.03);
    transition: transform 0.3s ease;
}

.faded-video {
    opacity: 0.6;
}

.more-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 18px;
}

/* Override more-overlay positioning for gallery-workshops */
.gallery-workshops .more-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Image Grid Styles */
.image-grid {
    display: grid;
    gap: 8px;
    margin-bottom: 15px;
}

.image-grid.images-1 {
    grid-template-columns: 1fr;
}

.image-grid.images-2 {
    grid-template-columns: 1fr 1fr;
}

.image-grid.images-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.image-grid.images-4 {
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.image-grid.images-5 {
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
}

.image-grid.images-6 {
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
}

.image-item {
    position: relative;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
}

.image-item:hover {
    transform: scale(1.03);
    transition: transform 0.3s ease;
}

.image-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.faded-image {
    opacity: 0.6;
}

/* Media Modal Arrow Styles */
.media-modal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 40px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 20;
}

.media-modal-arrow:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.media-modal-prev {
    left: 20px;
}

.media-modal-next {
    right: 20px;
}

.media-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 15px;
    border-radius: 20px;
}
