/* 
 * CreativeDavid Content Pages CSS Styles
 */

/* Page Title Sections */

.page-header {
    padding: 2rem 0;
}
.page-header h1 {
    font-size: 2rem;
    padding-bottom: 2rem;
}
.page-header .subhead {
    margin-top: -1rem;
}
.page-header p {
    font-size: .9rem;
    font-weight: 200;
    color: hsl(0deg 0% 50%);
    max-width: 640px;
}

/* Page Content Sections */

.content-section {
    padding: 3rem 0 4rem;
}

.content-section h2 {
    padding-bottom: .5rem;
}
.content-section h3 {
    padding-bottom: 1rem;
    font-size: .9rem;
    color: hsl(0deg 0% 80%);
    font-weight: normal;
    font-style: italic;
}
.content-section p {
    font-weight: 300;
    font-size: .8rem;
    line-height: 1.1rem;
}

.content-section img {
    max-height: 400px;
}

/* Lightboxes and Video Players */

.asset-float {
    box-shadow: 0 8px 10px -5px rgb(0 0 0 / 30%);
}
.lightbox.asset-float {
    border-radius: 16px;
}
.lightbox.asset-float:hover {
    box-shadow: 0 18px 10px -5px rgb(0 0 0 / 30%);
}

.lightbox {
    position: relative;
    transition: all .2s;
    cursor: pointer;
}
.absolute {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 0 0 10px transparent;
    transition: all .2s;
    border: 10px solid var(--site);
}
.absolute div {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    z-index: 10;
    transition: all .2s;
    transform: translateY(-15px);
    transform: rotate(-45deg);
    width: 73%;
    height: 32%;
    right: -32%;
    bottom: -5%;
    background-color: var(--site);
}
.absolute::before {
    display: block;
    background-color: white;
    position: absolute;
    width: 150px;
    height: 90px;
    border-radius: 15px;
    z-index: 1;
    transition: all .2s;
}

.youtube-triangle {
    width: 40%;
    transform: rotate(45deg);
    margin-right: 10px;
    margin-bottom: 10px;
    transition: all .2s;
    fill: white;
    stroke-width: 7px;
    stroke: var(--site);
}
.lightbox:hover {
    transform: scale(1.05);
}
.lightbox:hover .absolute {
    border-color: white;
    box-shadow: 0 0 0 10px var(--site);
}
.lightbox:hover .absolute div {
    background-color: rgb(255 255 255 / 50%);
}
.lightbox.small:hover .absolute div {
    right: -25%;
    bottom: 25%;
    width: 150%;
    height: 50%;
}
.lightbox:hover .youtube-triangle {
    margin: 0;
    width: 220px;
    filter: drop-shadow(7px 7px black);
}
.lightbox > img {
    border-radius: 15px;
}
.lightbox::before {
    display: block;
    position: absolute;
    top: 16px;
    left: -2px;
    right: -2px;
    bottom: -16px;
    border-radius: 30px;
    z-index: -2;
    background-color: var(--site);
}
.lightbox::after {
    display: block;
    position: absolute;
    background-color: white;
    top: 4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 20px;
    z-index: -1;
}

.modal {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgb(0 0 0 / 85%);
    z-index: 1000000;
}

/* Masonry Grid (Art Page) */

.masonry-grid {
    position: relative;
    display: flex;
    z-index: 10;
    padding-bottom: 3rem;
}
.masonry-grid > div {
    flex-basis: 50%;
}
.masonry-grid > div > div {
    padding-top: 1rem;
    display: flex;
    justify-content: center;
}

.masonry-grid a {
    display: block;
    width: calc(100% - 1rem);
    background-color: transparent;
}
.masonry-grid figure,
.masonry-grid img,
.masonry-grid figure div,
.masonry-grid figure span {
    border-radius: 10px;
}
.masonry-grid figure div,
.masonry-grid figure span {
    transition: all .2s;
}

.masonry-grid figure {
    width: 100%;
    margin: auto;
    position: relative;
    background-color: white;
    padding: 0;
}
.masonry-grid img {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    opacity: 0;
}
.masonry-grid figure div,
.masonry-grid figure span {
    position: absolute;
}
.masonry-grid figure div {
    transform: scale(1);
    box-shadow: 0 5px 10px -5px rgb(0 0 0 / 50%);
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.masonry-grid figure span {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
    box-shadow: 0 0 0 0 white;
    width: 100%;
    height: 100%;
}

.masonry-grid a:hover {
    z-index: 100;
}
.masonry-grid a:hover figure div {
    transform: scale(1.15);
    border-radius: 20px;
}
.masonry-grid a:hover figure span {
    box-shadow: 0 0 0 10px white;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
}



