/* Common styles for all design options */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #1a1a1a;
    color: #e0e0e0;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 300;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
    color: #b0b0b0;
}

a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #cccccc;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: transparent;
    border: 1px solid #444;
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    background: #333;
    border-color: #666;
}

.btn-primary {
    background: #333;
    border-color: #555;
}

.btn-primary:hover {
    background: #444;
    border-color: #777;
}

/* Navigation styles */
.nav {
    list-style: none;
    display: flex;
}

.nav li {
    margin-right: 2rem;
}

.nav a {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.nav a:hover,
.nav a.active {
    border-color: #666;
}

/* Image styles */
.image-grid {
    display: grid;
    gap: 20px;
    margin: 2rem 0;
}

.image-item {
    position: relative;
    background: #222;
    width: 100%;
    height: auto;
}

.image-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.image-item:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-item:hover .image-overlay {
    opacity: 1;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: #2a2a2a;
    border: 1px solid #444;
    color: #e0e0e0;
    font-size: 16px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #666;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Page Header / Banner Styles */
.page-header {
    position: relative;
    min-height: 200px;
    height: auto;
    padding: 60px 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-bottom: 1px solid #333;
    margin-bottom: 40px;
}

.page-header-content {
    max-width: 800px;
    padding: 0 2rem;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 0;
    letter-spacing: 2px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 0.9;
    word-wrap: break-word;
    hyphens: auto;
}

.page-header p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    margin: 0;
    margin-top: -15px;
}

/* Album Navigation */
.album-nav {
    margin-bottom: 40px;
    position: relative;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.nav-arrow {
    background: #333;
    border: 1px solid #555;
    color: #e0e0e0;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 24px;
    transition: all 0.3s ease;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    height: 60px;
    flex-shrink: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.nav-prev {
    left: -80px;
}

.nav-next {
    right: -80px;
}

.nav-arrow:hover:not(:disabled) {
    background: #444;
    border-color: #666;
    transform: translateY(-50%) scale(1.05);
}

.nav-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.album-nav ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 0.8rem;
    padding: 0;
    margin: 0;
    list-style: none;
    max-width: 800px;
    width: 100%;
}

.album-nav li {
    display: flex;
}

.album-nav a {
    flex: 1;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 16px;
    border: 1px solid #444;
    background: transparent;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 2px;
}

.album-nav a:hover,
.album-nav a.active {
    background: #333;
    border-color: #666;
    transform: translateY(-1px);
}

.album-nav .empty-slot {
    min-height: 48px;
    visibility: hidden;
}

/* Responsive */
/* Specific fix for iPad Air 820x1180 */
@media screen and (min-width: 800px) and (max-width: 840px) and (min-height: 1160px) and (max-height: 1200px) {
    .page-header {
        min-height: 80px;
        padding: 10px 0;
        margin-bottom: 15px;
    }

    .page-header h1 {
        font-size: 1.8rem;
        letter-spacing: 1px;
        margin-bottom: 0;
        line-height: 0.8;
    }

    .page-header p {
        font-size: 0.8rem;
        margin: 0;
        margin-top: -15px;
    }

    .nav-prev {
        left: -35px;
    }

    .nav-next {
        right: -35px;
    }

    .nav-container {
        max-width: 90%;
        margin: 0 auto;
        padding: 0 45px;
    }
}

@media (max-width: 1024px) and (min-width: 485px) {
    .nav-prev {
        left: -40px;
    }

    .nav-next {
        right: -40px;
    }

    .nav-container {
        max-width: 85%;
        margin: 0 auto;
        padding: 0 50px;
    }

    .page-header {
        min-height: 100px;
        padding: 15px 0;
        margin-bottom: 20px;
    }

    .page-header h1 {
        font-size: 2rem;
        letter-spacing: 1.2px;
        margin-bottom: 0;
        line-height: 0.9;
    }

    .page-header p {
        font-size: 0.9rem;
        margin: 0;
        margin-top: -10px;
    }
}


@media (max-width: 920px) {
    .container {
        padding: 0 15px;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

    .nav {
        flex-direction: column;
    }

    .nav li {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .page-header {
        min-height: 150px;
        padding: 40px 0;
        background-attachment: scroll;
    }

    .page-header h1 {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }

    /* Album Navigation Mobile */
    .nav-container {
        gap: 1rem;
    }

    .nav-arrow {
        padding: 8px 12px;
        font-size: 20px;
        min-width: 50px;
        height: 50px;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
    }

    .nav-prev {
        left: -60px;
    }

    .nav-next {
        right: -60px;
    }

    .album-nav ul {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 1fr);
        gap: 0.5rem;
    }

    .album-nav a {
        font-size: 7px;
        padding: 4px 2px;
        letter-spacing: 0.1px;
        min-height: 26px;
        line-height: 1.0;
        text-align: center;
    }
}

@media (max-width: 484px) {
    .container {
        padding: 0;
        margin: 0;
    }

    .portfolio .container {
        padding: 0 !important;
        margin: 0 !important;
        max-width: none !important;
        width: 100% !important;
    }

    .album-nav a {
        font-size: 13px;
        padding: 18px 2px;
        letter-spacing: 0.3px;
        min-height: 60px;
        line-height: 1.2;
        border-radius: 4px;
        word-wrap: break-word;
        hyphens: auto;
        width: 100%;
        box-sizing: border-box;
    }

    .nav-container {
        justify-content: center !important;
        align-items: center !important;
        margin: 0 !important;
        width: 100% !important;
        display: flex !important;
        padding: 0 !important;
        max-width: none !important;
    }

    .album-nav {
        margin: 20px 0;
        padding: 0;
        width: 100%;
        text-align: center;
        flex: 1;
    }

    .album-nav ul {
        margin: 0 !important;
        display: grid !important;
        justify-content: stretch !important;
        width: 100% !important;
        gap: 4px !important;
        grid-template-columns: repeat(2, 1fr) !important;
        grid-template-rows: repeat(4, 1fr) !important;
        padding: 0 !important;
        min-width: auto !important;
        max-width: none !important;
    }

    .nav-arrow {
        padding: 16px 20px;
        font-size: 20px;
        min-width: 56px;
        height: 56px;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
    }
}