/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 26, 26, 0.8); /* bg-snera-dark with opacity */
    backdrop-filter: blur(10px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    z-index: 1001;
    width: 90%;
    max-width: 1000px; /* Increased size */
    max-height: 90vh;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* space between image and text */
}

.modal-overlay.active .modal-content {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.modal-image-container {
    position: relative;
    width: 100%;
}

.modal-text-overlay {
    position: absolute;
    bottom: 1.5rem; /* p-6 */
    left: 1.5rem; /* p-6 */
    color: white;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8), 0 1px 3px rgba(0,0,0,0.5);
    z-index: 1; /* Ensure text is above the gradient */
}

.modal-image-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle at bottom left, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
}

.modal-description-container {
    padding-left: 1.5rem; /* space for the line */
    border-left: 2px solid #8A1C1C; /* snera-red */
    text-align: left;
    color: #A3A3A3; /* snera-concrete */
    font-size: 0.875rem;
    line-height: 1.8;
}
