/* Société il Noir homepage Specific Styles */
/* Intro */
.intro {
    text-align: center;
    padding-left: 2.5%;
    padding-right: 2.5%;
}

/* Principles Section */
.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(375px, 1fr));
    gap: 40px;
    padding: 20px 0;
}

.principle-box {
    border: 1px solid var(--border-color);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px; /* Ensure boxes have some height */
    transition: all 0.3s ease;
}
.principle-box:hover {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2); /* Subtle glow on hover */
    transform: translateY(-5px);
}
[data-theme="light"] .principle-box:hover {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.principle-box h3 {
    margin-top: 0;
    border-bottom: none; /* No border for H3 inside box */
    padding-bottom: 0;
    font-size: 1.6em;
    margin-bottom: 15px;
}
.principle-box p {
    font-size: 0.95em;
    margin-bottom: 20px;
}
.principle-box blockquote {
    font-size: 1em;
    margin: 15px 0 0 0;
    padding: 10px 0;
    border-left: none; /* No border inside principle box */
}
.principle-box blockquote:before, .principle-box blockquote:after {
    content: '"'; /* Add quotation marks */
    font-size: 1.2em;
    line-height: 0;
    vertical-align: bottom;
}
.principle-box blockquote:after {
    margin-left: 2px;
}
.principle-box blockquote:before {
    margin-right: 2px;
}


/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding-bottom: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    aspect-ratio: 1 / 1; /* Maintain square aspect ratio for consistency */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the box, cropping as needed */
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
    opacity: 0.8;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--color-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-family: var(--font-family-header);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.2em;
    text-align: center;
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}
[data-theme="light"] .gallery-overlay {
    background-color: rgba(255, 255, 255, 0.6);
    color: var(--color-secondary);
}

.outro {
    padding-bottom: 20px;
}

/* Facilitators Section */
.facilitators-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.facilitators-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    justify-items: center;
}

.facilitator-card {
    text-align: center;
    max-width: 250px;
}

.facilitator-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #808080 0%, #000000 100%);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #ffffff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    object-fit: cover; /* Cover the box, cropping as needed */
}

.facilitator-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the box, cropping as needed */
    display: block;
    transition: transform 0.3s ease;
}


.facilitator-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.facilitator-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.facilitator-image:hover::before {
    opacity: 1;
    animation: shine 0.6s ease-in-out;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.facilitator-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 8px;
    text-shadow: 1px 1px #aaaaaa;
    white-space: nowrap;
}

.facilitator-role {
    font-size: 0.9rem;
    color: #cccccc;
    margin-bottom: 12px;
}

.facilitator-description {
    font-size: 0.85rem;
    color: #aaaaaa;
    line-height: 1.4;
}

/* Tablet styles - 2 columns */
@media (max-width: 844px) {
    .facilitators-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .section-heading {
        font-size: 2rem;
    }
}

/* Mobile styles - 1 column */
@media (max-width: 480px) {
    .facilitators-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .section-heading {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .facilitator-image {
        width: 120px;
        height: 120px;
        font-size: 2.5rem;
    }
    
    .facilitators-section {
        padding: 30px 15px;
    }

    .facilitator-name, h3 {
        margin-top: 10px;
    }
}

/* Responsive Design */
@media (min-width: 650px) {
    .gallery-grid {
        /* On screens wider than 650px, display two columns */
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .gallery-grid {
        /* On screens wider than 900px, display four columns */
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .principles-grid {
        grid-template-columns: 1fr; /* Stack columns on smaller screens */
    }
    .principle-box {
        min-height: auto; /* Allow height to adjust */
    }
}

/* Landscape/Portrait adaptation (subtle changes) */
@media screen and (orientation: landscape) and (max-height: 500px) {
    /* Adjustments for very narrow landscape views (e.g., small phones held sideways) */
    .principles-grid {
        grid-template-columns: repeat(auto-fit, minmax(251px, 1fr));
    }
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

@media screen and (orientation: portrait) and (max-width: 500px) {
    /* Specific adjustments for smaller portrait views */
    .principles-grid, .gallery-grid {
        gap: 15px;
    }
    .principle-box {
        padding: 20px;
    }
}