/* ===========================================
   Alex Firlik Website Phase II
   Article / Photo Gallery Layout
   with Phase IV Master Box
   =========================================== */

/* ---------- Page ---------- */

body {
    font-family: Arial, sans-serif;
    background-color: #dddddd;
    color: #333;
    margin: 0;
    line-height: 1.6;
    text-align: left;
}

.page {
    max-width: 800px;
    margin: 30px auto;
    padding: 0 16px;
}

.main-box {
    background-color: #fff;
    border: 2px solid #1f6fd6;
    border-radius: 12px;
    padding: 20px;
}

/* ---------- Headings ---------- */

h1 {
    color: #0066cc;
    margin-bottom: 20px;
     text-align: center;
}

.photo-gallery h2 {
    color: #0066cc;
    margin-bottom: 12px;
    text-align: center;
}

/* ---------- Buttons ---------- */

.home-button,
.antics-button {
    display: block;
    width: 220px;
    margin: 30px auto 10px;
    padding: 8px 16px;

    background-color: #1f6fd6;
    color: white;

    text-align: center;
    text-decoration: none;
    font-weight: bold;

    border-radius: 8px;
    box-shadow: 1px 1px 4px rgba(0,0,0,.2);

    transition: background-color .2s ease;
}

.home-button:hover,
.antics-button:hover {
    background-color: #3a82f6;
}

/* ---------- Main Content ---------- */

..content-box {
    margin: 20px 0 30px;
    text-align: left;
    line-height: 1.6;
}

/* ---------- Photo Gallery ---------- */

.photo-gallery {
    margin: 30px 0 10px;
    text-align: left;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    align-items: start;
}

/* ---------- Photo Cards ---------- */

.photo-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e6e6e6;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    text-align: center;
}

.photo-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.photo-item figcaption {
    padding: 8px;
    font-style: italic;
    color: #555;
    font-size: 0.95rem;
    background: #fafafa;
}

/* ---------- Responsive ---------- */

@media (max-width: 700px) {

    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .photo-item img {
        height: 140px;
    }

}

@media (max-width: 420px) {

    .photo-grid {
        grid-template-columns: 1fr;
    }

    .photo-item img {
        height: 220px;
    }

}