* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f4f6f8;
  color: #333;
}

/* ================= HEADER ================= */

.header{
    position:sticky;
    top:0;
    z-index:1000;

    display:flex;
    align-items:center;
    justify-content:space-between;

    height:70px;
    padding:0 30px;

    background:#fff;
    box-shadow:0 2px 12px rgba(0,0,0,.08);

    /* Needed so the mobile menu is positioned relative to the header */
    position:sticky;
}

.logo{
    font-size:28px;
    font-weight:bold;
    color:#FF69B4;
}

.menu{
    display:flex;
    gap:12px;
    align-items:center;
}

.menu a{
    color:#555;
    text-decoration:none;
    font-weight:600;
    border:2px solid #ffd4e7;
    border-radius:30px;
    padding:11px 24px;
    transition:.25s;
}

.menu a:hover{
    /*background:#ff4fa3;*/
    background: #ff81ba;	
}

#menu-toggle{
    display:none;
}

.hamburger{
    display:none;
    font-size:30px;
    cursor:pointer;
    user-select:none;
}

/* ================= MOBILE ================= */

@media (max-width:700px){

    .header{
        padding:0 18px;
        position:sticky;
        overflow:visible;
    }

    .logo{
        font-size:22px;
    }

    .hamburger{
        display:block;
    }

    .menu{
        display:flex;
        flex-direction:column;
        gap:10px;

        position:absolute;
        top:70px;
        left:0;
        right:0;

        padding:15px;

        background:#fff;

        box-shadow:0 10px 24px rgba(0,0,0,.15);

        transform:translateY(-10px);
        opacity:0;
        visibility:hidden;

        transition:.25s;
    }

    .menu a{
        display:block;
        width:100%;
        text-align:center;
        margin:0;
    }

    #menu-toggle:checked ~ .menu{
        opacity:1;
        visibility:visible;
        transform:translateY(0);
    }

    .model{
        min-height:170px;
        height:auto;
        padding:15px 20px;
    }

    .model h1{
        font-size:28px;
        line-height:1.3;
    }

    .model p{
        font-size:16px;
        margin-top:10px;
    }
}

span.glyphicon {
    padding-right: 5px;
}

/* model */
.model {
  height: auto;
  background: linear-gradient(135deg, #FF69B4, #ffc0cb);
  color: white;
  display: flex;
  flex-direction: column;
  /*justify-content: center;*/
  align-items: center;
  text-align: center;
  padding: 0px 20px 15px 0px;
}

.model h1 {
  font-size: 35px;
  margin-bottom: 5px;
}

.model p {
  font-size: 20px;
  opacity: .9;
}

/* CATEGORY */
.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 25px;
  justify-content: center;
}

.categories a {
  text-decoration: none;
  color: #444;
  background: white;
  border: 1px solid #ddd;
  padding: 10px 20px;
  border-radius: 999px;
  transition: .25s;
}

.categories a:hover {
  background: #ffc0cb;
  color: white;
}

.categories a.active {
    background: #ff81ba;
    color: #fff;
}

div.categories_section {
  max-width: 1000px;
  margin: auto;
}

.tag-menu{

    display:flex;
    flex-wrap:wrap;
    gap:12px;

}

/* Each menu automatically sizes itself */
.tag{

    display:inline-flex;
    align-items:center;
    justify-content:center;

    padding:12px 24px;

    background:white;

    border:1px solid #d8d8d8;

    border-radius:999px;

    text-decoration:none;

    color:#333;

    font-size:15px;

    font-weight:600;

    transition:.25s;

    white-space:nowrap;

}

.tag:hover{

    background:#ff4fa3;

    color:#fff;

    border-color:#ff4fa3;
    text-decoration:none;

    transform:translateY(-2px);

    box-shadow:0 8px 20px rgba(37,99,235,.25);

}

.tag.active{

    background:#111827;

    color:white;

    border-color:#111827;

}

@media(max-width:768px){


    .tag{

        flex:1 1 calc(50% - 12px);

        justify-content:center;

    }

}

@media(max-width:480px){

    .tag{

        flex:1 1 100%;

    }

}


/* GALLERY */
.gallery {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.photo {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: white;
  box-shadow: 0 5px 18px rgba(0, 0, 0, .08);
  cursor: pointer;
}

.photo img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  transition: .4s;
  display: block;
}

.photo:hover img {
  transform: scale(1.08);
}

.overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .8));
  color: white;
  opacity: 0;
  transition: .3s;
}

.photo:hover .overlay {
  opacity: 1;
}

/* PAGE LOADER */
.gallery-loader{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px;
}

.skeleton {
    border-radius: 8px;
    overflow: hidden;
}

.skeleton-image {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: #e6e6e6;
    animation: loading 1.2s infinite;
}

.skeleton-text {
    height: 16px;
    margin-top: 10px;
    border-radius: 4px;
    background: #e6e6e6;
    animation: loading 1.2s infinite;
}

@keyframes loading {
    0% {
        opacity: .45;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: .45;
    }
}

#gallery_contents {
    min-height: calc(100vh - 280px);
}


.gallery-loader{
    position:relative;
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
    gap:18px;
}

/* Spinner */
.loader-spinner{
    position:absolute;
    left:50%;
    top:50%;
    transform:translate(-50%,-50%);
    z-index:100;
    text-align:center;
    pointer-events:none;
}

.loader-spinner p{
    margin-top:10px;
    color:#666;
    font-size:14px;
}

.spinner{
    width:52px;
    height:52px;
    border:5px solid #e5e5e5;
    border-top:5px solid #ff4d6d;
    border-radius:50%;
    animation:spin .8s linear infinite;
    margin:auto;
}

@keyframes spin{
    to{
        transform:rotate(360deg);
    }
}

.skeleton{
    opacity:.35;
}


/* FOOTER */
footer {
  margin-top: 40px;
  background: #111827;
  color: #bbb;
  padding: 25px;
  text-align: center;
}

/* RESPONSIVE */
@media(max-width:1600px) {
  .gallery {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media(max-width:1300px) {
  .gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media(max-width:900px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media(max-width:600px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .model h1 {
    font-size: 34px;
  }
}

@media(max-width:400px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}



/********** POP UP MODAL ***********/
/* Overlay */

/* Smooth transition */
#page-content{
    transition: filter .9s ease;
}

/* Blur background */
#page-content.blur{
    filter: blur(14px);
    pointer-events: none;   /* Prevent clicking behind popup */
    user-select: none;
}

.modal-overlay{

    display:none;

    position:fixed;
    left:0;
    top:0;

    width:100%;
    height:100%;

    background:rgba(0,0,0,.75);

    justify-content:center;
    align-items:center;

    z-index:99999;
}

/* Popup */

.modal-box{

    position:relative;

    width:90%;
    max-width:450px;

    background:#fff;

    border-radius:15px;

    padding:35px;

    text-align:center;

    box-shadow:0 20px 40px rgba(0,0,0,.25);

    animation:popup .35s ease;
}

@keyframes popup{

    from{
        transform:translateY(40px);
        opacity:0;
    }

    to{
        transform:translateY(0);
        opacity:1;
    }

}

.popup-logo{

    width:90px;
    margin-bottom:20px;

}

.modal-box h2{

    font-size:28px;
    margin-bottom:15px;
    color:#333;

}

.modal-box p{
    line-height:1.6;
    margin-bottom:30px;

}

.continue-btn{

    background:red;/*#2b7cff;*/

    color:#fff;

    border:none;

    padding:14px 35px;

    border-radius:50px;

    cursor:pointer;

    font-size:16px;

    transition:.3s;
}

.continue-btn:hover{

    background:#145fd6;

}

.close-popup{

    position:absolute;

    right:15px;
    top:10px;

    border:none;
    background:none;

    font-size:30px;

    cursor:pointer;

    color:#777;

}

.close-popup:hover{

    color:#000;

}

.modal-box h4, .modal-box .agreement-terms{
    margin: 10px 0px 10px 0px;
}

.agreement-terms, .warnings{
    font-size: 12px;
    color:#666;
    line-height: 16px;
}
