/* Custom styles for Americana Echoes Gallery */

:root {
    --primary-color: #922641;
    --primary-hover: #7a1f36;
    --text-dark: #000000;
    --text-light: #ffffff;
    --background-cream: #FFF8E7;
    --footer-bg: #1d2b44;
    --nav-bg: #1d2b44;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

/* General styles */
body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-cream);
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: var(--font-heading);
    font-weight: normal;
}

/* Header styles */
.navbar {
    padding: 0.5rem 0;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: normal;
    font-size: 2rem;
    color: var(--text-light) !important;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    color: var(--text-light) !important;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    opacity: 1;
}

.nav-link.active {
    opacity: 1;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background-color: var(--text-light);
}

/* Gallery styles */
.gallery-item {
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Footer styles */
footer {
    background-color: var(--footer-bg) !important;
}

footer .container {
    background-color: transparent !important;
}

footer a {
    text-decoration: none;
    transition: opacity 0.3s ease;
}

footer a:hover {
    opacity: 0.8;
}

.social-links a {
    font-size: 1.5rem;
    margin-right: 1rem;
}

/* Custom button styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-light);
}

/* Background colors */
.bg-dark {
    background-color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Text colors */
.text-primary {
    color: var(--primary-color) !important;
}

/* Badge colors */
.badge.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Card hover effects */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--text-light);
}

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

/* Team member card styles */
.card-img-wrapper {
    position: relative;
    padding-top: 60%; /* Reduced height for better face focus */
    overflow: hidden;
    margin-bottom: 0;
    max-height: 300px;
}

.card-img-wrapper .card-img-top {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 30%; /* Move focus point up slightly */
}

/* Card body spacing optimization */
.card-body {
    padding: 1rem;
}

.card-title {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.card-text.text-muted {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.card-text {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Team section spacing */
.team-section .row {
    margin-top: 1.5rem;
}

.col-md-4.mb-4 {
    margin-bottom: 1.5rem !important;
}

/* Container backgrounds - exclude footer */
/* .container:not(footer .container) {
    background-color: var(--background-cream);
} */

/* Section backgrounds - exclude footer */
section:not(footer section) {
    background-color: var(--background-cream);
}

/* Modal background update */
.modal-content {
    background-color: var(--text-light);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .gallery-item {
        margin-bottom: 1rem;
    }
    
    .card-img-wrapper {
        padding-top: 50%; /* Even shorter on mobile */
        max-height: 250px;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .card-text.text-muted {
        font-size: 0.9rem;
    }
    
    .card-text {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    
    .col-md-4.mb-4 {
        margin-bottom: 1rem !important;
    }
}

@media (max-width: 576px) {
    .card-img-wrapper {
        padding-top: 45%; /* Shortest on smallest screens */
        max-height: 200px;
    }
    
    .card {
        margin-bottom: 1rem;
    }
}

/* Featured Collections styles */
.featured-collections {
    padding: 80px 0;
    background-color: var(--background-cream);
}

.section-header {
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-header .display-2 {
    font-family: var(--font-heading);
    font-size: 48px;
    line-height: 1.2;
    color: #2A2A2A;
    margin-bottom: 16px;
    text-align: center;
}

.section-header .subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: #666;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.collections-grid {
    display: flex;
    flex-direction: column;
    gap: 80px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

.collection-item {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.collection-item:nth-child(even) {
    direction: rtl;
}

.collection-item:nth-child(even) .collection-content {
    direction: ltr;
}

.image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/10;
    max-height: 320px;
}

.collection-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: all 0.4s ease;
}

.collection-item:hover .collection-image {
    filter: grayscale(0%);
    transform: scale(1.03);
}

.collection-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.collection-icon i {
    color: var(--primary-color);
    font-size: 18px;
}

.collection-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.collection-content h3 {
    font-family: var(--font-heading);
    font-size: 32px;
    line-height: 1.2;
    color: #2A2A2A;
    margin: 0;
}

.photo-count {
    font-size: 14px;
    color: #666;
    background: #F5F5F5;
    padding: 6px 12px;
    border-radius: 100px;
    display: inline-block;
    align-self: flex-start;
}

.collection-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

.view-gallery {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    transition: all 0.3s ease;
}

.view-gallery:after {
    content: "→";
    transition: transform 0.3s ease;
}

.view-gallery:hover {
    color: var(--primary-hover);
}

.view-gallery:hover:after {
    transform: translateX(6px);
}

@media (max-width: 991px) {
    .collection-item {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .collection-item:nth-child(even) {
        direction: ltr;
    }

    .image-wrapper {
        max-height: 280px;
    }

    .section-header .display-2 {
        font-size: 40px;
    }

    .collection-content h3 {
        font-size: 28px;
    }

    .featured-collections {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 40px;
        padding: 0 24px;
    }

    .collections-grid {
        gap: 60px;
    }
}

@media (max-width: 480px) {
    .section-header .display-2 {
        font-size: 32px;
    }

    .collection-content h3 {
        font-size: 24px;
    }

    .collection-icon {
        width: 32px;
        height: 32px;
        top: 12px;
        right: 12px;
    }

    .collection-icon i {
        font-size: 16px;
    }

    .featured-collections {
        padding: 40px 0;
    }

    .collections-grid {
        gap: 40px;
    }

    .image-wrapper {
        max-height: 220px;
    }
}

/* About Section */
.about-section h2 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Footer styles */
footer h5 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* Team Section Styles */
.team-section {
    background-color: var(--background-cream);
}

.team-member {
    transition: transform 0.3s ease;
    background: #ffffff;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member .card-body {
    padding: 1.5rem;
}

.team-member .card-title {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.team-member .text-muted {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.team-member .card-text {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Add subtle hover effect to images */
.team-member .card-img-top {
    transition: filter 0.3s ease;
}

.team-member:hover .card-img-top {
    filter: brightness(1.05);
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .card-img-wrapper {
        padding-top: 133.33%; /* 3:4 Aspect Ratio */
    }
    
    .team-member .card-body {
        padding: 1rem;
    }
    
    .team-member .card-title {
        font-size: 1.25rem;
    }
    
    .team-member .card-text {
        font-size: 0.9rem;
    }
    
    .section-header .display-2 {
        font-size: 2rem;
    }
    
    .section-header .subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .team-section .row {
        margin: 0 0.5rem;
    }

    /* Ensure all images maintain aspect ratio */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Gallery image adjustments */
    .gallery-item img {
        aspect-ratio: 16/9;
        object-fit: cover;
        width: 100%;
    }

    /* Collection image adjustments */
    .collection-image {
        aspect-ratio: 16/9;
        object-fit: cover;
        width: 100%;
    }
}

/* Small mobile devices */
@media (max-width: 576px) {
    .card-img-wrapper {
        padding-top: 100%; /* 1:1 Aspect Ratio */
    }

    /* Ensure proper spacing around images */
    .card {
        margin-bottom: 1.5rem;
    }

    /* Adjust modal image display */
    .modal-body img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* General spacing adjustments */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    /* Typography adjustments */
    .display-4 {
        font-size: calc(1.8rem + 1.5vw) !important;
    }
    
    .lead {
        font-size: 1.1rem !important;
    }
    
    /* Button adjustments */
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Navigation adjustments */
    .navbar-collapse {
        background-color: var(--nav-bg);
        padding: 1rem;
        border-radius: 0.5rem;
        margin-top: 0.5rem;
    }
    
    .nav-link {
        padding: 0.75rem 1rem !important;
        border-radius: 0.25rem;
    }
    
    .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    /* Card adjustments */
    .card {
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    /* Image adjustments */
    .img-fluid {
        border-radius: 0.5rem;
    }
    
    /* Section spacing */
    section {
        margin-bottom: 2rem;
    }
    
    /* Form adjustments */
    .form-control {
        font-size: 1rem;
        padding: 0.75rem;
    }
    
    /* Modal adjustments */
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    /* Footer adjustments */
    footer {
        text-align: center;
    }
    
    footer .col-md-4 {
        margin-bottom: 2rem;
    }
}

/* Small mobile devices */
@media (max-width: 576px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .display-4 {
        font-size: calc(1.6rem + 1vw) !important;
    }
    
    .btn-lg {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .card-img-top {
        height: 200px !important;
    }
    
    .w-75 {
        width: 100% !important;
    }
} 
