/* ================================
   A Weekend in Denmark — Global Styles
   ================================ */

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

body {
    font-family: Georgia, 'Times New Roman', Times, serif;
    background-color: #fafafa;
    color: #333;
    line-height: 1.6;
}

#main-content {
    max-width: 750px;
    margin: 0 auto;
    padding: 60px 40px;
}

.back-link {
    color: #5858ff;
    text-decoration: none;
    font-size: 18px;
    margin-bottom: 40px;
    display: inline-block;
}

.back-link:hover {
    opacity: 0.7;
}

/* ================================
   Homepage — centered hero
   ================================ */

.home-hero {
    text-align: center;
    padding-bottom: 48px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 48px;
}

.home-hero h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 36px;
    font-weight: 400;
    color: #5858ff;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    font-style: italic;
}

.home-hero p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    max-width: 520px;
    margin: 0 auto;
}

/* ================================
   Section labels
   ================================ */

.section-label {
    font-size: 13px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

/* ================================
   3-image gallery grid
   ================================ */

.image-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 48px;
}

.image-card {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.image-card img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.image-card-label {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    color: #333;
}

.image-card-label a {
    color: #5858ff;
    text-decoration: none;
    transition: opacity 0.2s;
}

.image-card-label a:hover {
    opacity: 0.7;
}

.image-card-sub {
    font-size: 12px;
    color: #999;
    text-align: center;
    margin-top: 3px;
}

.image-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: end;
    justify-content: center;
    padding: 14px;
    transition: background 0.3s;
    border-radius: 4px;
}

.image-card:hover .image-card-overlay {
    background: rgba(0, 0, 0, 0.35);
}

.image-card-overlay span {
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.3s;
    color: white;
    font-size: 13px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    font-weight: 500;
}

.image-card:hover .image-card-overlay span {
    opacity: 1;
    transform: translateY(0);
}

/* ================================
   Footer links (centered)
   ================================ */

.home-footer-links {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid #e0e0e0;
    font-size: 14px;
    color: #999;
}

.home-footer-links a {
    color: #5858ff;
    text-decoration: none;
    transition: opacity 0.2s;
}

.home-footer-links a:hover {
    opacity: 0.7;
}

/* ================================
   Blog Post / Guide
   ================================ */

h1.page-title {
    font-size: 20px;
    font-weight: 600;
    color: #5858ff;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.post-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 32px;
}

.post-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

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

.post-content h2 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 36px;
    margin-bottom: 12px;
    color: #333;
}

.post-image {
    margin: 28px 0;
}

.post-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.post-image-caption {
    font-size: 13px;
    color: #999;
    margin-top: 6px;
    font-style: italic;
}

/* ================================
   Photo Gallery
   ================================ */

.gallery-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 40px;
}

.gallery-wrap h1 {
    font-size: 20px;
    font-weight: 600;
    color: #5858ff;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.gallery-intro {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 32px;
}

.photo-grid {
    columns: 3;
    column-gap: 12px;
}

.photo-item {
    break-inside: avoid;
    margin-bottom: 12px;
    position: relative;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
}

.photo-item a {
    display: block;
    text-decoration: none;
}

.photo-item img {
    width: 100%;
    display: block;
    border-radius: 4px;
}

.photo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: end;
    padding: 12px;
    transition: background 0.3s;
    border-radius: 4px;
}

.photo-item:hover .photo-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.photo-overlay-content {
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.3s;
    color: white;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: end;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

.photo-item:hover .photo-overlay-content {
    opacity: 1;
    transform: translateY(0);
}

.photo-title {
    font-size: 13px;
    font-weight: 500;
}

.photo-price {
    font-size: 11px;
    background: #5858ff;
    padding: 3px 8px;
    border-radius: 2px;
    white-space: nowrap;
}

/* ================================
   Single Photo / Purchase
   ================================ */

.single-photo-layout {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 40px;
    align-items: start;
}

.single-photo-main img {
    width: 100%;
    display: block;
    border-radius: 4px;
}

.single-photo-info h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
}

.photo-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e0e0e0;
}

.purchase-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.purchase-option {
    border: 1.5px solid #e0e0e0;
    border-radius: 4px;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: border-color 0.2s;
    text-decoration: none;
    color: inherit;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

.purchase-option:hover {
    border-color: #5858ff;
    opacity: 1;
}

.purchase-option-label {
    font-weight: 500;
    font-size: 14px;
    color: #333;
}

.purchase-option-desc {
    font-size: 12px;
    color: #999;
    margin-top: 1px;
}

.purchase-option-price {
    font-weight: 600;
    color: #5858ff;
    font-size: 15px;
}

.purchase-note {
    margin-top: 16px;
    font-size: 13px;
    color: #999;
    line-height: 1.6;
}

/* ================================
   Responsive
   ================================ */

@media (max-width: 768px) {
    #main-content,
    .gallery-wrap {
        padding: 40px 20px;
    }

    .home-hero h1 {
        font-size: 28px;
    }

    .image-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .photo-grid {
        columns: 2;
    }

    .single-photo-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .photo-grid {
        columns: 1;
    }
}
