/* Medieval Dungeon Theme for FoxDen */

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Cinzel', 'MedievalSharp', serif, Arial, sans-serif;
    background: url("../images/dungeonwall.png");
    background-size: cover;
    background-repeat: repeat;
    color: #e0d8c3;
}

header {
    background: linear-gradient(90deg, #3a2c17 0%, #5c4b2a 100%);
    color: #e0d8c3;
    padding: 2rem 1rem 1.2rem 1rem;
    text-align: center;
    border-bottom: 8px solid #7c6a4a;
    box-shadow: 0 6px 24px #000a;
    letter-spacing: 2px;
    font-family: 'Cinzel', 'MedievalSharp', serif;
}

header h1 {
    margin: 0;
    font-size: 2.7rem;
    font-family: 'Cinzel', 'MedievalSharp', serif;
    letter-spacing: 2px;
    text-shadow: 2px 4px 12px #000a;
}

main {
    flex: 1 0 auto;
    max-width: 800px;
    min-width: 40vw;
    margin: 2rem auto;
    padding: 2rem 1.5rem;
    background: rgba(44, 36, 24, 0.97);
    border-radius: 18px;
    border: 3px dotted #7c6a4a;
    box-shadow: 0 0 48px 12px #000c;
    z-index: 3;
    position: relative;
}

.gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.gallery img {
    width: 350px;
    height: 350px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 32px #000b;
    transition: box-shadow 0.2s;
}

.gallery img:hover {
    box-shadow: 0 16px 48px #000d;
    border-color: #bfa76f;
}

.gallery-controls {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.gallery-controls button {
    padding: 0.7rem 0.7rem;
    width: 140px;
    font-size: 1.1rem;
    border: none;
    border-radius: 18px;
    background: linear-gradient(90deg, #5c4b2a 0%, #3a2c17 100%);
    color: #e0d8c3;
    font-family: 'Cinzel', 'MedievalSharp', serif;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 8px #000a;
    transition: background 0.2s, transform 0.1s;
    outline: none;
    letter-spacing: 1px;
    position: relative;
    text-align: center;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#next-btn::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 12px;
    vertical-align: middle;
    background-image: url('data:image/svg+xml;utf8,<svg fill="goldenrod" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><polygon points="9,6 7.59,7.41 12.17,12 7.59,16.59 9,18 15,12"/></svg>');
}

#prev-btn::after {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    background-size: contain;
    background-repeat: no-repeat;
    margin-left: 12px;
    vertical-align: middle;
    background-image: url('data:image/svg+xml;utf8,<svg fill="goldenrod" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><polygon points="15.41,7.41 14,6 8,12 14,18 15.41,16.59 10.83,12"/></svg>');
}

#prev-btn::before,
#next-btn::after {
    content: none;
}

.gallery-controls button:hover {
    background: linear-gradient(90deg, #bfa76f 0%, #7c6a4a 100%);
    transform: translateY(-2px) scale(1.05);
}

.image-caption {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: #bfa76f;
    font-weight: bold;
    text-align: center;
    min-height: 2.5rem;
    letter-spacing: 0.12em;
    font-family: 'Cinzel', 'MedievalSharp', serif;
    text-shadow: 1px 2px 8px #000a;
}

.gallery-content {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.image-description {
    width: 350px;
    height: 345px;
    background: rgba(60, 48, 32, 0.98);
    border: 2px solid #bfa76f;
    color: #e0d8c3;
    font-size: 1rem;
    font-family: 'Cinzel', 'MedievalSharp', serif;
    box-shadow: 0 2px 8px #000a;
}

#image-description-header {
    display: flex;
    width: 100%;
    height: 48px;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    margin: 0;
    background: rgba(40, 32, 21, 0.98);
}

#image-description-body {
    width: 100%;
    border-radius: 12px;
    margin-block-start: 0em;
    padding: 1rem;
}

.top-vignette {
    position: fixed;
    display: flex;
    justify-content: space-between;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 1000;
    pointer-events: none;
    background: transparent;
}

.top-vignette img, .top-vignette svg {
    width: 35vw;
    max-width: 100%;
    display: block;
    pointer-events: none;
    user-select: none;
}

.side-paws {
    position: absolute;
    top: 140px;
    bottom: 0;
    width: 160px;
    pointer-events: none;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
}

.left-paws {
    left: 0;
    margin-left: 60px;
}

.right-paws {
    right: 0;
    margin-right: 60px;
}

.pawprint-row {
    width: 160px;
    height: 64px;
    display: flex;
    align-items: center;
}

.pawprint-row.flex-start {
    justify-content: flex-start;
}

.pawprint-row.flex-end {
    justify-content: flex-end;
}

.pawprint-svg {
    width: 56px;
    height: 56px;
    opacity: 0.88;
    transition: transform 0.2s;
    filter: grayscale(0.7) brightness(0.7) drop-shadow(2px 4px 4px #000a);
}

.right-paws .pawprint-svg {
    filter: grayscale(0.7) brightness(0.7) drop-shadow(-2px 4px 4px #000a);
}

.foxden-footer {
    flex-shrink: 0;
    width: 100vw;
    background: linear-gradient(90deg, #3a2c17 0%, #5c4b2a 100%);
    color: #e0d8c3;
    text-align: center;
    font-size: 1.2rem;
    font-family: 'Cinzel', 'MedievalSharp', serif;
    padding: 2.5rem 0 2.5rem 0;
    position: relative;
    z-index: 2;
    box-shadow: 0 -4px 24px #000a;
    margin-top: 48px;
    overflow: hidden;
}

.foxden-footer::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0; bottom: 0;
    background: #3a2c17;
    opacity: 0.97;
    z-index: 1;
}
.footer-content {
    position: relative;
    z-index: 2;
}

.gallery-image-wrapper {
    position: relative;
    display: inline-block;
}

.gallery-overlay {
    position: absolute;
    background: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

ul {
    padding-inline-start: 20px;
}

a {
    text-decoration: none;
    color: #e0d8c3;
}

a:visited {
    color: #e0d8c3;
}

@media (max-width: 600px) {
    .gallery img,
    .image-description {
        width: 90vw;
        height: 50vw;
        margin: 2vw;
        max-width: 98vw;
        max-height: 60vw;
    }
    main {
        padding: 1rem 0.2rem;
    }
    .side-paws {
        display: none;
    }
}

@media (max-width: 800px) {
    .gallery-content {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}