/* ================================
   My Icelandic Travels — Global Styles
   Matches davidklose.info aesthetic
   ================================ */

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

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

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

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

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

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

/* ================================
   Content — links, lists, headings
   ================================ */

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

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

.content h2:first-of-type {
    margin-top: 0;
}

.content p {
    margin-bottom: 16px;
}

.content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 24px;
}

.content li {
    margin-bottom: 12px;
}

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

.content a:hover {
    opacity: 0.7;
}

.link-description {
    color: #666;
}

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

.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-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 {
        padding: 40px 20px;
    }

    .gallery-wrap {
        padding: 40px 20px;
    }

    h1 {
        font-size: 18px;
    }

    .content {
        font-size: 15px;
    }

    .photo-grid {
        columns: 2;
    }

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

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