@import url('common.css');

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

body {
    font-family: 'Garamond', 'Georgia', serif;
    color: #9e6b48;
    overflow-x: hidden;
}

/* Hamburger Menu - Same as other pages */
.hamburger {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background: #9e6b48;
    transition: all 0.3s ease;
}

.hamburger:hover span {
    background: #9e6b48;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
    animation: menuFadeIn 0.3s ease;
}

.menu-overlay.active {
    display: flex;
}

@keyframes menuFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.menu-items {
    list-style: none;
    text-align: center;
}

.menu-items li {
    margin: 30px 0;
    font-size: 2rem;
    letter-spacing: 3px;
    transition: all 0.3s ease;
}

.menu-items li a {
    color: #9e6b48;
    text-decoration: none;
    display: inline-block;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.menu-items li a:hover {
    color: #9e6b48;
    border-bottom: 2px solid #9e6b48;
}

/* Page Hero */
.page-hero {
    width: 100vw;
    height: 50vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)),
        url('../img/3.jpg');
    background-size: cover;
    background-position: center 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 85%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 85%, rgba(0, 0, 0, 0) 100%);
}

.hero-overlay {
    text-align: center;
}

.hero-overlay h1 {
    font-size: 4.5rem;
    font-weight: 200;
    letter-spacing: 12px;
    margin-bottom: 15px;
    color: #9e6b48;
}

.hero-overlay .subtitle {
    font-size: 1.2rem;
    letter-spacing: 4px;
    font-weight: 300;
    color: #9e6b48;
    font-family: 'Hiragino Mincho ProN', 'Yu Mincho', 'MS Mincho', serif;
}

/* Gallery Content */
.gallery-content {
    padding: 100px 60px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: default;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.gallery-item img {
    max-width: 100%;
    width: 100%;
    /* Force fill width of grid cell */
    height: auto;
    display: block;
    object-fit: cover;
    /* Ensure clean fit */
    transition: transform 0.5s ease;
}

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

.gallery-item:hover::after {
    opacity: 1;
}

/* Download Icon Style */
.download-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    z-index: 10;
}

.gallery-item:hover .download-icon {
    opacity: 1;
}

.download-icon:hover {
    background-color: rgba(255, 255, 255, 1);
}

.download-icon svg {
    width: 20px;
    height: 20px;
    fill: #333;
}


/* Footer */
footer {
    padding: 60px 50px;
    text-align: center;
}

footer p {
    color: #9e6b48;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 30px;
    justify-content: center;
}

.social-links a {
    color: #9e6b48;
    text-decoration: none;
    transition: color 0.3s ease;
    letter-spacing: 1px;
}

.social-links a:hover {
    color: #9e6b48;
}

/* Responsive */
@media (max-width: 768px) {
    .page-hero {
        background-position: center;
    }

    .hero-overlay h1 {
        font-size: 3rem;
    }

    .menu-items li {
        font-size: 1.5rem;
    }

    .gallery-content {
        padding: 40px 15px;
        /* Reduce padding */
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 Columns on Mobile */
        gap: 10px;
        /* Smaller gap */
    }

    .download-icon {
        opacity: 1 !important;
        /* Always show download icon */
        width: 28px;
        height: 28px;
        bottom: 5px;
        right: 5px;
    }

    .download-icon svg {
        width: 16px;
        height: 16px;
    }
}