/* style.css */
body {
    font-family: sans-serif;
    margin: 0;
    padding: 40px 40px 0 40px;
    background-color: #f9f9f9;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
header {
    text-align: center;
    margin-bottom: 40px;
}
h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
}
h1 a {
    color: #333;
    text-decoration: none;
}
h2 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}
p {
    color: #666;
}

/* Main Grid Layout */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    flex: 1;
}

/* Clean, non-intrusive link wrapper for grid thumbnails */
.gallery-link {
    text-decoration: none; 
    color: inherit;
    display: flex;
    flex-direction: column;
}

/* Core Art Frame styling shared by both views */
figure {
    margin: 0;
    background: #fff;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Lift animation on grid item hover */
.gallery-link:hover figure {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

/* Locked viewports for the grid view only */
.gallery-grid figure img {
    width: 100%;
    height: 250px; 
    object-fit: cover; 
    object-position: center;
    display: block;
}

/* Dynamic Native View Page constraints */
.single-art-container {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    flex: 1;
}
.single-art-container figure img {
    width: 100%;
    height: auto; /* Unlocks native proportions */
    display: block;
}
.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #777;
    text-decoration: none;
    font-size: 0.9rem;
}
.back-link:hover {
    color: #333;
}

figcaption {
    margin-top: auto; 
    padding-top: 12px;
    font-size: 0.9rem;
    text-align: center;
    color: #555;
}

/* Footer rules */
footer {
    border-top: 1px solid #e0e0e0;
    margin-top: 60px;
    padding: 30px 0;
    text-align: center;
    font-size: 0.85rem;
    color: #777;
    line-height: 1.6;
}
footer a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
}
footer a:hover {
    text-decoration: underline;
}

