/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

/* INTERIOR GALLERY */

.title-wrapper {
    padding-block: 48px;
    text-align: center;
    h1 {
        font-weight: 400;
    }
    P {
        color: #87888C;
    }
}

.interior-content {
    padding-inline: 20px;
    max-width: 800px;
    margin-bottom: 24px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    a {
        color: #003C72;
    }
    a:hover {
        text-decoration: underline;
    }
}

.interior-gallery {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    padding-inline: 55px;
    margin-inline: auto;
    max-width: 1140px;
    padding-bottom: 60px;
    padding-top: 40px;

    @media screen and (min-width: 768px) {
        grid-template-columns: repeat(3, minmax(0, 1fr));

        & > :nth-child(6n+1),
        & > :nth-child(6n+5) {
            grid-column: span 2;
            grid-row: span 2;
        }
    }
}
.interior-gallery__item {
    display: block;
    position: relative;

    &:hover .interior-gallery__item-overlay,
    &:focus .interior-gallery__item-overlay {
        opacity: 1;
    }
}
.interior-gallery__item-overlay {
    position: absolute;
    height: 100%;
    width: 100%;
    background-color: rgba(255, 255, 255, .3);
    opacity: 0;
    transition: opacity 250ms ease;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0;
    left: 0;
}
.interior-gallery__image {
    height: 100%;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    object-position: center;
}
.interior-gallery__icon {
    width: 50px;
    height: 50px;
    background-color: white;
    border-radius: 9999px;
    font-size: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #87888c;
}
.filter_wrapper {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-inline: auto;
    max-width: 1140px;
    width: 100%;
    padding-inline: 20px;
    select {
        width: 150px;
        margin-left: 10px;
    }
    @media screen and (min-width: 768px) {
        flex-direction: row;
        align-items: center;
    }
}
.filter_label {
    display: flex;
    align-items: center;
    gap:5px;
}
.filter__icon {
    width: 20px;
    height: 20px;
    color: #87888c;
}

.arrow-icon {
    color: #dbdbdb;
    font-size: 56px;
    line-height: 80px;
    height: 80px;

}

.arrow_image {
    width: 80px;
    aspect-ratio: 1;
    object-fit: cover;
    display: none;
}
.post_link {
    display: flex;
    align-items:center;
    /* box-shadow: 0 3px 6px 0 rgba(0,0,0,.15); */
    width: fit-content;
    span {
        font-size: 12px;
        line-height: 12px;
        text-transform: uppercase;
        display: none;
    }
}

.post_link:hover, .post_link:focus {
    box-shadow: 0 3px 6px 0 rgba(0,0,0,.15);
    background: white;
    span {
        display: block;
    }
    .arrow_image {
        display: block;
    }
}

.prev_post-link {
    padding-left: 20px;
    position: fixed;
    top: 300px;
    left: 0;
    z-index: 40;
    .arrow-icon {
        margin-right: 30px;
    }
    .arrow_image {
        margin-left: 10px;
    }
}

.next_post-link {
    padding-right: 20px;
    text-align: end;
    position: fixed;
    top: 300px;
    right: 0;
    z-index: 40;
    .arrow-icon {
        margin-left: 30px;
    }
    .arrow_image {
        margin-right: 10px;
    }
}

/* interiors archive */
.interiors-title{
    margin-block:40px;
    text-align: center;
}

.interiors {
    margin-bottom: 60px;
	display: grid;
	row-gap: 5px;
	column-gap: 5px;
}

@media screen and (min-width: 768px) {
  .interiors{
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (min-width: 1024px) {
  .interiors{
    grid-template-columns: 1fr 1fr 1fr;
  }
}
.interior-card {
  aspect-ratio:  0.65;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow:hidden;
  .interior-card_title{
  	display: flex;
    flex-direction: column;
  	justify-content: center;
  	align-items: center;
	padding-block: 32px;
    padding-inline: 40px;
    background: #f5f5f5;
    h2{
      font-size: 24px;
      font-weight: 400; 
    }
    p {
       font-size: 18px;
       font-family: "Gotham Book", sans-serif; 
    }
  }
  .interior-card_img {
      object-fit:cover;
      flex-grow: 1;
      width: 100%;
      height: 100%;
    }
}