/* Cast Gallery Styles - Filmabee Style */
.services-grid-homepage {
    gap: 8px !important;
    grid-gap: 8px !important;
}

.services-card {
    position: relative !important;
    overflow: hidden !important;
    cursor: pointer !important;
    transition: all 0.5s ease !important;
    border-radius: 4px !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
}

.services-card img {
    transition: transform 0.5s ease !important;
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.services-card:hover img {
    transform: scale(1.1) !important;
}

.cast-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    z-index: 10;
}

.services-card:hover .cast-hover-overlay {
    opacity: 1;
}

.cast-hover-info {
    text-align: center;
    color: white;
}

.cast-hover-info h4 {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 8px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.cast-hover-info p {
    font-size: 14px;
    margin: 0 0 8px 0;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.cast-hover-line {
    width: 40px;
    height: 2px;
    background: #d4af37;
    margin: 0 auto;
}

/* Modal Styles */
.cast-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.cast-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cast-modal-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.cast-modal-info {
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 20px;
    text-align: center;
    color: white;
    margin-top: 20px;
    border-radius: 8px;
    min-width: 300px;
}

.cast-modal-name {
    font-size: 24px;
    font-weight: bold;
    margin: 0 0 10px 0;
    color: #d4af37;
}

.cast-modal-quote {
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 15px 0;
    font-style: italic;
}

.cast-modal-imdb {
    color: #d4af37;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.cast-modal-imdb:hover {
    color: #f4d03f;
}

.cast-modal-prev,
.cast-modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.cast-modal-prev:hover,
.cast-modal-next:hover {
    background: rgba(0,0,0,0.8);
    transform: translateY(-50%) scale(1.1);
}

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

.cast-modal-close:hover {
    background: rgba(0,0,0,0.8);
    transform: scale(1.1);
}

.cast-modal-counter {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0,0,0,0.5);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

/* Hide original text content completely - only show on hover/click */
.services-card .heading-h3-black,
.services-card .paragraph-18 {
    display: none !important;
}

/* Responsive Grid Layout */
/* iPad - 2 columns */
@media (max-width: 991px) and (min-width: 768px) {
    .services-grid-homepage {
        grid-template-columns: 1fr 1fr !important;
        gap: 16px !important;
    }
}

/* Mobile - 1 column */
@media (max-width: 767px) {
    .services-grid-homepage {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .cast-modal-content {
        max-width: 95vw;
    }
    
    .cast-modal-prev,
    .cast-modal-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .cast-modal-prev {
        left: 10px;
    }
    
    .cast-modal-next {
        right: 10px;
    }
    
    .cast-modal-info {
        min-width: 250px;
        padding: 15px;
    }
    
    .cast-modal-name {
        font-size: 20px;
    }
    
    .cast-modal-quote {
        font-size: 14px;
    }
}