/* Shared */

body {
    background: #d9d9d9;
    font-family: "Slabo 27px", serif;
    margin: 0;
}

a:link {
    color: #262626;
    text-decoration: none;
}

a:hover, a:active {
    color: #262626;
    text-decoration: underline;
}

a:visited {
    color: #23556b;
    text-decoration: none;
}

*, ::before, ::after {
    box-sizing: border-box;
}

p {
    display: block;
    margin: 15px auto;
    width: 394px;
}

.logo {
    height: 100px;
    width: 394px;
}

.wrap {
    background: #262626;
    padding: 10px 0;
}

header {
    height: 100px;
    width: 100%;
    background: linear-gradient(
        to right,
        #ffdd55 0%,
        #ffdd55 50%,
        #262626 50%,
        #262626 100%
    );
    display: flex;
    justify-content: center;
}

main {
    padding: 30px 0;
    text-align: right;
    font-size: 2em;
}

footer {
    text-align: center;
    padding: 60px 0px;
}

/* Photos */

#container {
    position: relative;
    max-width: 1280px;
    padding: 0 85px;
    margin: 30px auto;
    box-sizing: border-box;
}

#banners, #gallery {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 30px;
}

#banners, #gallery a {
    color: inherit;
    text-decoration: none;
}

.banner-img, .photo-img {
    display: block;
    object-fit: cover;
    width: 100%;
    height: auto;
    transition: opacity 0.25s;
}

@media screen and (max-width: 1023px) {
    #banners, #gallery {
        grid-template-columns: repeat(2,1fr);
    }
}

@media screen and (max-width: 767px) {
    #banners, #gallery {
        grid-template-columns: repeat(1,1fr);
    }
}

/* (A) RESPONSIVE IMAGE */
.himg {
    width: 100%;
}

.hwrap {
    max-width: 500px;
} /* optional */

/* (B) POSITION CAPTION */
.hwrap {
    position: relative;
}

.hcap {
    /* (B1) PLACE AT BOTTOM */
    position: absolute;
    bottom: 0;
    left: 0;

    /* (B2) DIMENSIONS + COLORS */
    width: 100%;
    padding: 10px;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    font-size: .4em;
    font-weight: 400;
    font-style: normal;
}

/* (C) ONLY SHOW CAPTION ON HOVER */
.hcap {
    visibility: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.hwrap:hover .hcap{
    visibility: visible;
    opacity: 1;
}

