/* Import Nunito font */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: #FFBF00;
    /* Yellow background for overscroll at top */
}

html::after {
    content: '';
    position: fixed;
    left: 0;
    right: 0;
    bottom: -50vh;
    /* Positioned below the viewport */
    height: 100vh;
    /* Tall enough to cover overscroll */
    background-color: black;
    z-index: -1;
    /* Behind all content */
}

body {
    background-color: #FFBF00;
    /* Bright yellow/gold background */
    font-family: 'Nunito', sans-serif;
    color: #333;
    min-height: 100vh;
    overflow-x: hidden;
    /* Prevent horizontal scrolling of the entire page */
    position: relative;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header-container {
    width: 100%;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 0 0 40px 0;
}

h1 {
    font-family: 'Bagel Fat One', cursive;
    font-size: 220px;
    font-weight: 400;
    color: #ffff9a;
    line-height: 100%;
    letter-spacing: 0;
    text-align: center;
}

.photo-gallery-container {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    padding: 0;
    background-color: #FFBF00;
    /* Match the background color */
}

.swiper {
    padding: 30px 0;
    width: 100%;
    overflow: visible;
    height: 420px;
    /* Increased height for desktop */
}

.swiper-wrapper {
    display: flex;
    padding-left: 5vw;
    padding-right: 5vw;
    gap: 40px;
    /* Match the spaceBetween value from Swiper config */
    margin-top: 16px !important;
    /* Push the wrapper down by 50px */
}

.swiper-slide {
    width: auto !important;
    /* Allow cards to size naturally */
    transition: transform 0.3s ease;
    margin-right: 0 !important;
    /* Let gap property handle spacing instead */
}

.photo-card {
    flex: 0 0 auto;
    width: 240px;
    background: white;
    padding: 10px 10px 20px 10px;
    border-radius: 14px;
    box-shadow: 0 5px 15px rgba(109, 82, 0, 0.4);
    transform: rotate(-6deg);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

/* More random rotations for a natural look */
.swiper-slide:nth-child(3n+1) .photo-card {
    transform: rotate(8deg);
}

.swiper-slide:nth-child(3n+2) .photo-card {
    transform: rotate(-10deg);
}

.swiper-slide:nth-child(4n) .photo-card {
    transform: rotate(7deg);
}

.swiper-slide:nth-child(5n) .photo-card {
    transform: rotate(-9deg);
}

.swiper-slide:nth-child(7n) .photo-card {
    transform: rotate(10deg);
}

.swiper-slide:hover .photo-card {
    transform: rotate(0) scale(1.05);
    z-index: 2;
}

.photo {
    width: 100%;
    height: 0;
    padding-bottom: 133.33%;
    /* 4:3 aspect ratio (4/3 = 1.3333) */
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
    border-radius: 8px;
}

.photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.photo-caption {
    font-family: 'Bad Script', cursive;
    line-height: 1.3;
    padding: 0 5px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.caption-title {
    font-size: 14px;
    color: #777;
}

.caption-date {
    font-size: 12px;
    color: #777;
    text-align: right;
}

.button-container {
    text-align: center;
    padding: 10px;
}

.camera-button {
    font-family: 'Nunito', -apple-system, system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 900;
    background-color: white;
    color: #FFBF00;
    border: none;
    padding: 12px 30px 15px 30px;
    font-size: 1.5rem;
    border-radius: 20px;
    /* Less rounded corners, was 50px */
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(109, 82, 0, 0.2);
    transition: all 0.3s ease;
}

.camera-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(109, 82, 0, 0.4);
}

.down-arrow {
    display: inline-block;
    margin-left: 8px;
    font-size: 1.2em;
    animation: float 2s ease-in-out infinite;
    letter-spacing: -2px;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}

/* Camera Section */
.camera-section {
    padding: 0 0 60px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    scroll-margin-top: 50px;
    background-color: white;
    width: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.camera-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.camera-container {
    width: 100%;
    display: block;
    margin-bottom: 40px;
}

.camera-image {
    display: block;
    width: 100%; /* Full width */
    height: auto; /* Auto height to maintain aspect ratio */
    max-width: 100%; /* Ensures image doesn't exceed container width */
    margin: 0 auto; /* Center horizontally */
    object-fit: cover; /* Cover the container while maintaining aspect ratio */
}

.camera-description {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    margin: 30px 0;
}

.camera-description h2 {
    font-family: 'Nunito', -apple-system, system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 3.5rem;
    color: #FFBF00;
    text-align: center;
    padding: 0 20px;
    line-height: 1.3;
    font-weight: 800;
    max-width: 700px;
    margin: 0 auto;
}

.decorative-line {
    position: absolute;
    width: 40px;
    height: 6px;
    background-color: #FFBF00;
}

.left-line {
    left: -60px;
    top: 0;
    transform: rotate(210deg);
}

.left-line:before,
.left-line:after {
    content: '';
    position: absolute;
    background-color: #FFBF00;
    width: 20px;
    height: 6px;
}

.left-line:before {
    top: -15px;
    left: 0;
    transform: rotate(-25deg);
}

.left-line:after {
    top: 15px;
    left: 0;
    transform: rotate(25deg);
}

.right-line {
    right: -60px;
    bottom: 0px;
    transform: rotate(210deg);
}

.right-line:before,
.right-line:after {
    content: '';
    position: absolute;
    background-color: #FFBF00;
    width: 20px;
    height: 6px;
}

.right-line:before {
    bottom: 15px;
    right: 0;
    transform: rotate(25deg);
}

.right-line:after {
    bottom: -15px;
    right: 0;
    transform: rotate(-25deg);
}

.instagram-embed-container {
    display: flex;
    justify-content: center;
    margin: 40px auto 20px;
    max-width: 540px;
    width: 100%;
}

.instagram-embed-container .instagram-media {
    margin: 0 auto !important;
}

/* Footer Section */
.site-footer {
    background-color: black;
    color: white;
    padding: 100px 0 0 0;
}

.footer-content {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 60px;
    /* Added gap to create more space between eyes and text */
}

.footer-logo {
    flex: 0 0 30%;
}

.eye-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    position: relative;
    overflow: hidden;
    /* Changed from visible to hidden to enable clean cut-off */
}

.eye {
    width: 120px;
    height: 280px;
    background-color: white;
    border-radius: 50%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(10%);
    /* Move eyes down so bottom 10% is cut off by container */
}

.pupil {
    width: 30px;
    height: 50px;
    background-color: black;
    border-radius: 50%;
    position: absolute;
    /* Position the pupil at the center */
    top: 50%;
    left: 50%;
    /* Initial transform to center the pupil */
    transform: translate(-50%, -50%);
    /* Hardware acceleration for smoother movement */
    will-change: transform;
    /* Faster transition for snappier movement */
    transition: transform 0.05s linear;
}

.footer-info {
    flex: 0 0 80%;
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

.footer-column {
    flex: 0 0 35%;
}

.footer-column h3 {
    font-family: 'Nunito', -apple-system, system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1.8rem;
    margin-bottom: 28px;
    font-weight: 800;
}

.team-member {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    position: relative;
}

.member-name {
    font-family: 'Nunito', -apple-system, system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 500;
    font-size: 1rem;
    flex: 0 0 48%;
    display: flex;
    align-items: center;
}

.member-name a {
    color: inherit;
    text-decoration: none;
}

.member-role-container {
    position: relative;
    display: block;
    flex: 0 0 48%;
}

.member-role {
    font-family: 'Nunito', -apple-system, system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 300;
    color: #aaa;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.member-role a {
    color: inherit;
    text-decoration: none;
}

.footer-divider {
    margin: 10px 0 20px;
    border: none;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    width: 80%;
}

.footer-email {
    color: #aaa;
    font-family: 'Nunito', -apple-system, system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 400;
    font-size: 1rem;
    margin-bottom: 25px;
    align-self: center;
    width: 80%;
    text-align: left;
}

.footer-email a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-email a:hover {
    color: white;
    text-decoration: underline;
}

.footer-bottom {
    flex-basis: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Person photo card for hover effect */
.person-photo-card {
    display: none;
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    margin-bottom: 10px;
    width: 200px;
    background: white;
    padding: 2px;
    border-radius: 14px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 100;
    pointer-events: none;
    /* Ensuring it doesn't interfere with other hover events */
}

.person-photo-card .team-photo {
    width: 100%;
    margin: 0;
    transform: none;
    border-radius: 8px;
    overflow: hidden;
}

.person-photo-card .team-photo img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Hover effect for desktop only - explicitly using hover */
@media screen and (min-width: 769px) {

    /* Only apply to team column, not inspo */
    .footer-column:first-child .member-role:hover+.person-photo-card,
    .footer-column:first-child .member-role-container:hover .person-photo-card {
        display: block;
    }

    /* Ensure team member has positioning */
    .team-member {
        position: relative;
    }

    /* Only apply pointer events modification to team column */
    .footer-column:first-child .member-role a {
        pointer-events: none;
    }

    .footer-column:first-child .member-role a * {
        pointer-events: auto;
    }
}

/* Mobile only */
.team-photo-card {
    display: none;
    max-width: 500px;
    margin-bottom: 30px;
}

.team-photo {
    background: white;
    padding: 10px;
    border-radius: 14px;
    position: relative;
    z-index: 1;
    width: 100%;
    margin: 0 auto;
    transform: rotate(-3deg);
    transition: transform 0.3s ease;
}

.team-photo img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.team-photo:hover {
    transform: rotate(0) scale(1.05);
    z-index: 2;
}

/* Responsive Styles */
@media screen and (max-width: 1200px) {
    h1 {
        font-size: 140px;
    }

    .camera-description h2 {
        font-size: 3.5rem;
    }

    .eye {
        width: 100px;
        height: 220px;
    }

    .pupil {
        width: 25px;
        height: 40px;
    }
}

@media screen and (max-width: 991px) {
    h1 {
        font-size: 120px;
    }

    header {
        padding: 0 0 20px 0;
    }

    .camera-description h2 {
        font-size: 3rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .footer-logo {
        flex: 0 0 auto;
    }

    .footer-info {
        flex: 0 0 auto;
        width: 100%;
        justify-content: center;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .team-photo-card {
        margin-left: auto;
        margin-right: auto;
    }
}

@media screen and (max-width: 768px) {
    h1 {
        font-size: 90px;
    }

    .swiper {
        height: 320px;
    }

    .swiper-wrapper {
        gap: 20px;
    }

    .photo-card {
        width: 200px;
    }

    .camera-description {
        flex-direction: column;
        gap: 10px;
        margin: 0;
    }

    .camera-description h2 {
        font-size: 2.5rem;
        padding: 0 10px;
    }

    .decorative-line {
        display: none;
    }

    .camera-button {
        font-size: 1.3rem;
        padding: 12px 25px 15px 25px;
    }

    .camera-image {
        max-width: 100%; /* Full width on mobile */
        width: 100%; /* Ensure image takes full width */
        height: 380px; /* Reduced height for mobile */
        object-fit: cover; /* Zooms into the image */
        object-position: center; /* Centers the zoom */
        margin: 0; /* Remove any margin */
    }

    .footer-info {
        gap: 20px;
    }

    .footer-column {
        flex: 0 0 100%;
    }

    .eye {
        width: 80px;
        height: 180px;
    }

    .pupil {
        width: 20px;
        height: 35px;
    }

    /* Hide eye logo on smaller devices */
    .footer-logo {
        display: none;
    }

    /* Show team photo on mobile */
    .team-photo-card {
        display: block;
    }

    /* Adjust footer content now that eyes are hidden */
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }

    .footer-info {
        width: 100%;
    }
}

@media screen and (max-width: 576px) {
    h1 {
        font-size: 90px;
    }

    .header-container {
        padding: 15px;
    }

    .container {
        padding: 15px;
    }

    header {
        padding: 0 0 15px 0;
    }

    .swiper {
        height: 320px;
        padding: 20px 0;
    }

    .photo-card {
        width: 180px;
    }

    .camera-button {
        font-size: 1.1rem;
        padding: 10px 20px 12px 20px;
    }

    .camera-description h2 {
        font-size: 2rem;
    }

    .eye-logo {
        gap: 20px;
    }

    .eye {
        width: 60px;
        height: 140px;
    }

    .pupil {
        width: 15px;
        height: 25px;
    }

    .footer-column h3 {
        font-size: 1.5rem;
    }

    .team-member {
        display: flex;
        justify-content: space-between;
        margin-bottom: 15px;
        align-items: center;
        width: 100%;
    }

    .member-name {
        flex: 0 0 auto;
        text-align: left;
    }

    .member-role {
        flex: 0 0 auto;
        text-align: right; 
        margin-top: 0;
    }
    
    .member-role-container {
        width: 100%;
        text-align: right;
        display: flex;
        justify-content: flex-end;
    }

    .camera-image {
        max-width: 100%; /* Full width on smaller mobile */
        width: 100%; /* Ensure image takes full width */
        height: 320px; /* Smaller height for smaller screens */
        object-fit: cover; /* Zooms into the image */
        object-position: center; /* Centers the zoom */
        margin: 0; /* Remove any margin */
    }

    .footer-divider {
        margin: 5px auto;
        width: 100%;
    }

    .footer-email {
        text-align: center;
        padding: 40px 0 60px 0;
    }

    .footer-column .team-member {
        display: flex;
        justify-content: space-between;
    }
    
    .footer-column .member-role {
        text-align: right;
        justify-content: flex-end;
    }
    
    .footer-column:first-child .member-role {
        display: flex;
        justify-content: flex-end;
        text-align: right;
    }

    .camera-description {
        margin: 10px;
    }
}

@media screen and (max-width: 375px) {
    h1 {
        font-size: 90px;
    }

    .swiper {
        height: 320px;
    }

    .photo-card {
        width: 160px;
    }

    .camera-description {
        margin: 10px;
    }

    .camera-description h2 {
        font-size: 1.7rem;
    }

    .camera-image {
        max-width: 100%; /* Full width on smallest screens */
        width: 100%; /* Ensure image takes full width */
        height: 260px; /* Even smaller height for smallest screens */
        object-fit: cover; /* Zooms into the image */
        object-position: center; /* Centers the zoom */
        margin: 0; /* Remove any margin */
    }
}
