/* GLOBAL */
*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}
body{
    display: flex;
    justify-content: center;
    align-items:center;
    background-color: rgb(245, 245, 245);
}

.row{
    display: flex;
    flex-direction: row;
}
.column{
    display: flex;
    flex-direction: column;
}

/* MAIN CONTAINER */
.container{
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* gallery HEADER */
.gallery-header{
    width: 100%;
    height: 275px;
    background: url('https://res.cloudinary.com/q--design-automobile/image/upload/v1651423736/about_us_header_giutnu.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position-y: -375px;
}
.gallery-heading-container{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    background-color: rgba(0, 0, 0, 0.4);
}
.gallery-header h1{
    color: rgb(248.5, 248.5, 248.5);
    text-transform: uppercase;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 2.5px;
    padding-bottom: 2.5rem;
    text-align: center;
    
}

.container-gallery{
    width: 100%;
    text-align: center;
    margin: 0px 0px 150px 0px;
}
.gallery-category>label {
    background: black;
    border-radius: 15px;
}
.gallery-category{
    width: 95%;
    display: flex
;
    flex-wrap: wrap;
    gap: 10px;
    margin: 80px auto 50px auto;
    height: auto;
    justify-content: center;
}

label{
    display: inline-blocks;
    color: #FFFFFF;
    height: 100%;
    padding: 28px 35px;
    line-height: 1;
    cursor: pointer;
    transition: 0.5s;
    font-weight: 900;
    font-size: 24px;
    text-transform: uppercase;
    position: relative;
}

label:hover{
    color: #F0502B;;
}
input{
    display: none;
}

.gallery-category-pic{
    width: 90%;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    grid-gap: 3rem;
}

.picture{
    position: relative;
    height: auto;
}

.picture img{
    width: 100%;
    height: 100%;
}

.picture img:hover{
    transform: scale(1.1);
}
.gallery-category-pic .picture {
  aspect-ratio: 1 / 1;     /* Always square */
  overflow: hidden;        /* Hide cropped parts */
  border-radius: 8px;      /* (Optional) Rounded corners */
  display: flex;
  justify-content: center;
  align-items: center;
}

.gallery-category-pic .picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;       /* Fill without stretching */
  object-position: center; /* Center the crop */
  display: block;
}

/* for choose cateogry */

/* ========== CATEGORY FILTERS ========== */

/* All Photos */
#check1:checked ~ .container-gallery .gallery-category-pic .picture {
  opacity: 1;
  transform: scale(1);
  position: relative;
}

/* Paint Protection */
#check2:checked ~ .container-gallery .gallery-category-pic .picture {
  opacity: 0;
  transform: scale(0);
  position: absolute;
}
#check2:checked ~ .container-gallery .gallery-category-pic .picture.paint {
  opacity: 1;
  transform: scale(1);
  position: relative;
}

/* Grand Opening */
#check3:checked ~ .container-gallery .gallery-category-pic .picture {
  opacity: 0;
  transform: scale(0);
  position: absolute;
}
#check3:checked ~ .container-gallery .gallery-category-pic .picture.grand {
  opacity: 1;
  transform: scale(1);
  position: relative;
}
a {
    width: 100%;
    height: 100%;
}
/* Custom Design */
#check4:checked ~ .container-gallery .gallery-category-pic .picture {
  opacity: 0;
  transform: scale(0);
  position: absolute;
}
#check4:checked ~ .container-gallery .gallery-category-pic .picture.custom {
  opacity: 1;
  transform: scale(1);
  position: relative;
}

/* Window Film */
#check5:checked ~ .container-gallery .gallery-category-pic .picture {
  opacity: 0;
  transform: scale(0);
  position: absolute;
}
#check5:checked ~ .container-gallery .gallery-category-pic .picture.window {
  opacity: 1;
  transform: scale(1);
  position: relative;
}

/* Nano Ceramic Coating */
#check6:checked ~ .container-gallery .gallery-category-pic .picture {
  opacity: 0;
  transform: scale(0);
  position: absolute;
}
#check6:checked ~ .container-gallery .gallery-category-pic .picture.nano {
  opacity: 1;
  transform: scale(1);
  position: relative;
}

/* Caliper Paint */
#check7:checked ~ .container-gallery .gallery-category-pic .picture {
  opacity: 0;
  transform: scale(0);
  position: absolute;
}
#check7:checked ~ .container-gallery .gallery-category-pic .picture.caliper {
  opacity: 1;
  transform: scale(1);
  position: relative;
}

/* Peelable Paint */
#check8:checked ~ .container-gallery .gallery-category-pic .picture {
  opacity: 0;
  transform: scale(0);
  position: absolute;
}
#check8:checked ~ .container-gallery .gallery-category-pic .picture.peelable {
  opacity: 1;
  transform: scale(1);
  position: relative;
}

/* ========== ACTIVE LABEL HIGHLIGHT ========== */
#check1:checked ~ .container-gallery .gallery-category label[for="check1"],
#check2:checked ~ .container-gallery .gallery-category label[for="check2"],
#check3:checked ~ .container-gallery .gallery-category label[for="check3"],
#check4:checked ~ .container-gallery .gallery-category label[for="check4"],
#check5:checked ~ .container-gallery .gallery-category label[for="check5"],
#check6:checked ~ .container-gallery .gallery-category label[for="check6"],
#check7:checked ~ .container-gallery .gallery-category label[for="check7"],
#check8:checked ~ .container-gallery .gallery-category label[for="check8"] {
  background-color: pink;
  color: #000;
}


.gallery-category{
    display: flex;
}

.picture::before{
    content: "PHOTO GALLERY";
    position: absolute;
    opacity: 0;
    transition: 0.5s;
}
.picture::after{
    content: "";
    position: absolute;
    width: 100%;
    height: 0;
    transition: 0.3s;;
}


