/* styles.css - Stylesheet for Gallery Photo Page */
/* Import Inter font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');

/* Global styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: #111111;
    color: #ffffff;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    box-sizing: border-box;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Grid styles for index.php */
.masonry {
    column-count: 4;
    column-gap: 16px;
}

@media (max-width: 1200px) {
    .masonry {
        column-count: 3;
    }
}

@media (max-width: 900px) {
    .masonry {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .masonry {
        column-count: 1;
    }
}

.card {
    display: inline-block;
    width: 100%;
    margin: 0 0 16px;
    break-inside: avoid;
}

.thumbnail {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.2s;
}

.thumbnail:hover {
    transform: scale(1.05);
}

/* Single photo view styles for view.php */
.photo-section {
    display: flex;
    flex-direction: column;
}

.photo-column {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.photo {
    max-width: 100%;
    max-height: calc(100vh - 160px);
    object-fit: contain;
}

.info-column {
    margin-top: 20px;
}

.header {
    text-align: left;
    padding: 0;
    margin-bottom: 70px;
}

.header h1 {
    background-color: #f9f9f9;
    color: #1c1c1c;
    margin: 0;
    font-weight: 700;
    font-size: 60pt;
    display: inline-block;
}

.date {
    font-size: 14pt;
    font-weight: 400;
    margin-top: 12px;
    margin-bottom: 18px;
}

.exif {
    font-size: 11pt;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.5;
}

.exif .camera {
    font-size: 12pt;
    font-weight: 500;
    margin-bottom: 6px;
}

/* Responsive styles */
@media (min-width: 900px) {
    .photo-section {
        flex-direction: row;
        gap: 20px;
        align-items: flex-start;
    }

    .info-column {
        flex: 1;
        margin-top: 0;
        padding-left: 20px;
    }
}