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

body {
    font-family: 'Times New Roman', Times, serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    max-width: 100%;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: #333;
}

ul {
    list-style: none;
}

/* Header & Logo */
header {
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo {
    text-align: center;
    margin-bottom: 20px;
}

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

.initials {
    font-size: 4rem;
    font-weight: normal;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.full-name {
    text-transform: uppercase;
    letter-spacing: 3px;
}

.full-name h2 {
    font-size: 1.2rem;
    font-weight: normal;
    margin-bottom: 5px;
}

.full-name p {
    font-size: 0.8rem;
    letter-spacing: 2px;
}

/* Navigation */
nav {
    padding-top: 15px;
    position: relative;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    font-size: 0.9rem;
    text-transform: none;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #888;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 150px;
    background: #fff;
    display: none;
    text-align: center;
    padding: 10px 0;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    margin: 0;
    padding: 5px 0;
}

.dropdown-menu a {
    display: block;
    padding: 5px 10px;
    font-size: 0.8rem;
}

.dropdown-menu a:hover {
    color: #888;
}

.menu-toggle {
    display: none;
    font-size: 0.9rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 10px;
    border: 1px solid #333;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 10px 0 15px;
}

.social-icons a {
    font-size: 1.1rem;
    color: #333;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #888;
}

/* Homepage Grid */
.homepage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 0 15px;
    max-width: 1400px;
    margin: 0 auto;
}

.grid-item {
    aspect-ratio: 2/3;
    overflow: hidden;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.grid-item:hover img {
    transform: scale(1.02);
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 60px;
    font-size: 0.8rem;
    color: #888;
}

/* Gallery Pages */
.gallery-header {
    height: auto;
    padding-top: 120px;
    padding-bottom: 60px;
    text-align: center;
    letter-spacing: 2px;
}

.gallery-title {
    font-size: 1.5rem;
    text-transform: uppercase;
    font-weight: normal;
    letter-spacing: 3px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 0 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    /* Remove the fixed aspect ratio */
    aspect-ratio: 2/3;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 15px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.02);
}

.gallery-item img.loaded {
    opacity: 1;
}

.gallery-item {
    position: relative;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.gallery-item.loaded,
.grid-item.loaded {
    background: none;
    animation: none;
}

/* Grid item loading styles */
.grid-item {
    position: relative;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.grid-item img {
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.grid-item img.loaded {
    opacity: 1;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.gallery-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 0 20px;
    font-size: 0.9rem;
    line-height: 1.8;
}

.gallery-intro h2 {
    font-size: 1.2rem;
    font-weight: normal;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1100;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 50%;
    max-height: 55vh;
    position: relative;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.lightbox-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #333;
    font-size: 1.8rem;
    cursor: pointer;
    transition: transform 0.2s ease;
    z-index: 1110;
}

.close-lightbox:hover {
    transform: scale(1.2);
}

/* About Section */
.about-section {
    max-width: 800px;
    margin: 60px auto;
    text-align: center;
    padding: 0 20px;
}

.about-photo-container {
    width: 300px;
    margin: 0 auto 30px;
}

.about-photo {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 1.5rem;
    font-weight: normal;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 25px;
    position: relative;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background-color: #333;
}

.about-content {
    font-size: 0.95rem;
    line-height: 1.8;
}

.about-content p {
    margin-bottom: 20px;
}

/* Contact Section */
.contact-section {
    max-width: 800px;
    margin: 60px auto;
    text-align: center;
    padding: 0 20px;
}

.contact-intro {
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 0.95rem;
    line-height: 1.8;
}

.contact-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 30px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
    padding: 20px;
    width: 220px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

.contact-item i {
    font-size: 2rem;
    margin-bottom: 15px;
}

.contact-item span {
    font-size: 1rem;
    letter-spacing: 1px;
    margin-bottom: 5px;
    font-weight: bold;
}

.contact-item p {
    font-size: 0.9rem;
    color: #555;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .homepage-grid, 
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .social-icons {
        position: static;
        justify-content: center;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        position: static;
        margin: 0 auto 15px;
        text-align: center;
    }
    
    nav {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        align-items: center;
        background: #fff;
        gap: 0;
        display: none;
        z-index: 100;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }
    
    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        width: 100%;
        text-align: center;
    }
    
    .dropdown:hover .dropdown-menu {
        display: none;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .homepage-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .contact-links {
        gap: 20px;
    }
    
    .contact-item {
        width: 100%;
        max-width: 280px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .homepage-grid, 
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .grid-item {
        aspect-ratio: 1/1.3;
    }
}