/* Tribute Section Styling Start  */
.tribute-section {
    padding: 100px 20px;
    font-family: 'Lato', sans-serif;
    overflow: hidden;
}

.tribute-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    /* Space between image and text */
}

.tribute-image {
    flex-basis: 35%;
    text-align: center;
}

.tribute-image img {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 50%;
    /* Circular frame */
    border: 6px solid #c9a55a;
    /* A classic gold color */
    box-shadow: 0 10px 40px rgba(201, 165, 90, 0.25);
    transition: transform 0.4s ease;
}

.tribute-image img:hover {
    transform: scale(1.05);
}

.tribute-text {
    flex-basis: 65%;
    color: #f0f0f0;
}

.tribute-text h3 {
    font-family: 'Playfair Display', serif;
    /* Elegant serif font */
    /* font-size: 2.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px; */

    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 10px;
    text-shadow: 2px 2px 5px #ffc024c9;
    font-family: "Mozilla Headline", sans-serif;
}

.divider {
    width: 100%;
    height: 3px;
    background: #c9a55a;
    margin-bottom: 25px;
    border-radius: 2px;
}

.tribute-text p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--dark);
    margin-bottom: 35px;
    font-family: 'Mozilla Headline';
}

.know-more-button {
    display: inline-block;
    padding: 12px 35px;
    border: 2px solid var(--primary);
    color: var(--primary);
    background-color: transparent;
    text-decoration: none;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50px;
    transition: all 0.4s ease;
    box-shadow: 0 0 0 rgba(201, 165, 90, 0.3);
}

.know-more-button:hover {
    background-color: #c9a55a;
    color: #1a1a1a;
    /* Dark text on hover */
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(201, 165, 90, 0.3);
}

/* Responsive layout for mobile devices */
@media (max-width: 768px) {
    .tribute-container {
        flex-direction: column;
        /* Stacks image on top of text */
        text-align: center;
        gap: 40px;
    }

    .tribute-image img {
        width: 220px;
        height: 220px;
    }

    .tribute-text h3 {
        font-size: 2.2rem;
    }

    .divider {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Tribute Section Styling Ends */


/* Collage Styling Start  */

.container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

/* Header Styles */
.page-header {
    padding: 2.5rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.125rem;
    color: #64748b;
}

/* Photo Collage Grid Styles */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding-bottom: 3rem;
    grid-auto-flow: dense;
    /* Important for masonry effect */
}

.grid-item {
    overflow: hidden;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    opacity: 0;
    transform: translateY(20px);
    animation: popIn 0.5s ease-out forwards;
}

.grid-item:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    transform: scale(1.03);
    z-index: 10;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Responsive Grid and Item Spans */
@media (min-width: 768px) {
    .photo-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .grid-item--large {
        grid-column: span 2;
        grid-row: span 2;
    }

    .grid-item--wide {
        grid-column: span 2;
    }
}

/* Modal Styles */
.modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.hidden {
    display: none;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 80rem;
    max-height: 100%;
}

#modal-image {
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
    margin: auto;
    border-radius: 0.5rem;
}

#caption {
    text-align: center;
    color: #d1d5db;
    margin-top: 1rem;
    font-size: 1.125rem;
}

.modal-close {
    position: absolute;
    top: -1rem;
    right: 0rem;
    color: white;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 60;
}

.modal-close:hover {
    color: #9ca3af;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    user-select: none;
    /* background-color: rgba(0, 0, 0, 0.3); */
    padding: 0.75rem;
    border-radius: 9999px;
    transition: background-color 0.3s;
    z-index: 9999;
}

.modal-nav:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

#prev-btn {
    left: 1rem;
}

#next-btn {
    right: 1rem;
}

@media screen and (max-width: 750px) {
    .modal-nav {
        font-size: 1.2rem;
    }

    #prev-btn {
        left: 0.5rem;
    }

    #next-btn {
        right: 0.5rem;
    }

}

/* Body class when modal is open */
.modal-open {
    overflow: hidden;
}

/* Animations */
.modal-fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

.modal-fade-out {
    animation: fadeOut 0.3s ease-in-out;
}

.image-zoom-in {
    animation: zoomIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
    }

    to {
        transform: scale(1);
    }
}

@keyframes popIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Collage Styling Ends */