body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #edaeae 0%, #8a6043 100%);
    min-height: 100vh;
}

nav {
    background: linear-gradient(to right, #e7c8c8 0%, #d0b670 100%);
    padding: 8px 5px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    margin: 2px;
}

nav a {
    color: #322c2c;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 14px;
}

nav a:hover {
    background-color: #ffffff;
    color: #9d6b6b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Touch device hover effects */
@media (hover: hover) {
    nav a:hover {
        background-color: #ffffff;
        color: #9d6b6b;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }
}

@media (hover: none) {
    nav a:active {
        background-color: #ffffff;
        color: #9d6b6b;
        transform: none;
    }
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.section {
    background: rgba(224, 201, 201, 0.95);
    margin: 30px 0;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    text-align: center;
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #5d4037;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #9d6b6b, #8a6043);
    border-radius: 2px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
    margin-top: 30px;
    justify-items: center;
}

.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    background: #fff;
    max-width: 600px;
    width: 100%;
}

.photo-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

.photo-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.photo-item:hover img {
    transform: scale(1.05);
}

.photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 20px 15px 15px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-item:hover .photo-caption {
    opacity: 1;
}

/* Legacy photo-row support for any remaining instances */
.photo-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.photo-row img {
    max-width: 450px;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.photo-row img:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

/* Large screens */
@media screen and (min-width: 1400px) {
    .photo-grid {
        grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
        gap: 50px;
        max-width: 1600px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .photo-item {
        max-width: 700px;
    }
    
    .photo-item img {
        height: 400px;
    }
    
    .photo-row {
        max-width: 1600px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .photo-row img {
        max-width: 500px;
        height: 350px;
    }
}

/* Tablet and smaller laptops */
@media screen and (max-width: 1024px) {
    .photo-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 30px;
    }
    
    .photo-item {
        max-width: 500px;
    }
    
    .photo-item img {
        height: 300px;
    }
    
    .photo-row img {
        max-width: 400px;
        height: 280px;
    }
}

/* Mobile landscape and small tablets */
@media screen and (max-width: 768px) {
    nav {
        padding: 5px;
    }
    
    nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 3px;
    }
    
    nav ul li {
        margin: 0;
        width: 100%;
    }
    
    nav ul li a {
        display: block;
        padding: 8px 12px;
        width: 100%;
        text-align: center;
        border-radius: 6px;
        margin: 1px 0;
        box-sizing: border-box;
        font-size: 13px;
    }
    
    main {
        padding: 15px;
    }
    
    .section {
        margin: 20px 0;
        padding: 25px 15px;
        border-radius: 10px;
    }
    
    .section h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .photo-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .photo-item {
        max-width: 100%;
    }
    
    .photo-item img {
        height: 280px;
    }
    
    .photo-row {
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .photo-row img {
        max-width: 100%;
        height: 240px;
    }
}

/* Mobile portrait */
@media screen and (max-width: 480px) {
    nav {
        padding: 4px;
    }
    
    nav ul li a {
        padding: 6px 10px;
        font-size: 12px;
        border-radius: 5px;
    }
    
    main {
        padding: 10px;
    }
    
    .section {
        margin: 15px 0;
        padding: 20px 12px;
        border-radius: 8px;
    }
    
    .section h2 {
        font-size: 1.5rem;
        letter-spacing: 1px;
        margin-bottom: 15px;
    }
    
    .photo-grid {
        gap: 20px;
        margin-top: 20px;
    }
    
    .photo-item {
        border-radius: 10px;
    }
    
    .photo-item img {
        height: 220px;
        border-radius: 10px;
    }
    
    .photo-row {
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .photo-row img {
        height: 180px;
        border-radius: 10px;
    }
}

/* Small mobile devices */
@media screen and (max-width: 320px) {
    nav ul li a {
        padding: 5px 8px;
        font-size: 11px;
    }
    
    main {
        padding: 8px;
    }
    
    .section {
        margin: 10px 0;
        padding: 15px 8px;
    }
    
    .section h2 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .photo-grid {
        gap: 15px;
        margin-top: 15px;
    }
    
    .photo-item img {
        height: 200px;
    }
    
    .photo-row {
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .photo-row img {
        height: 160px;
    }
}
 