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

html,
body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background: #32465f;
    overflow-x: hidden;
}


a {
    text-decoration:none;
}
/* Background Shape */

body::after {
  content: "";

  position: fixed;

  right: -10%;

  bottom: -25%;

  width: 90%;

  height: 80%;

  background: #ff5a5f;

  clip-path: polygon(100% 0, 100% 100%, 0 100%);

  z-index: -1;
}

/* Container */

.container {
  width: 1200px;
  max-width: 90%;
  margin: 30px auto;
  padding-bottom:120px;
  /*padding-bottom:10px;*/
}
.container{
    flex: 1;
}

/* Title */

h1 {
  color: white;
  font-size: 44px;
  font-weight: 800;
  margin-bottom: 20px;
}

#site_title h1::after{
    content:"";
    display:block;
    width:100%;
    height:4px;
    margin-top:12px;
    border-radius:20px;
    background:#ff5a5f;
}

/* Gallery */

.gallery {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 18px;
}
/*.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;
}


/* Card */

.card {
  overflow: hidden;

  background: white;

  transition: 0.3s;

  cursor: pointer;
}

.card img {
  width: 100%;

  height: 220px;

  object-fit: cover;

  display: block;

  transition: 0.4s;
}

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

/* Floating Categories Button */
/* Container for both buttons */
/* ===== Floating buttons ===== */
.fab-container {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 95px;

    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;

    z-index: 99999;
    pointer-events: none; /* container ignores clicks */
}

.fab-container .fab {
    pointer-events: auto; /* buttons remain clickable */

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-width: 220px;
    height: 60px;
    padding: 0 28px;

    background: #ff5a5f;
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    border-radius: 999px;

    box-shadow: 0 15px 35px rgba(0,0,0,.3);
    transition: transform .25s ease, background .25s ease;
}

.fab-container .fab:hover {
    transform: translateY(-3px);
    background: #ff454b;
}

.fab-container .fab::before {
    font-size: 22px;
}

.fab .glyphicon {
    font-size: 20px;
}

/* Mobile */
@media (max-width: 640px) {
    .fab-container {
        flex-direction: column;
        gap: 12px;
        /*bottom: 20px;*/
    	bottom: 120px;
    }

    .fab-container .fab {
        min-width: 200px;
        height: 54px;
        font-size: 18px;
    }
}

/* Responsive */

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

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

  h1 {
    font-size: 42px;
  }

}

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

  body::after {
    display: none;
  }

}





/***************** BASIC FOR PROMOTION SITES *****************/
/* 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;
}

.categories_section{
    background:rgba(255,255,255,.06);
    backdrop-filter:blur(12px);
    border:1px solid rgba(255,255,255,.08);
    border-radius:24px;
    padding:30px;
    margin-bottom:60px;
    box-shadow:
        0 20px 40px rgba(0,0,0,.18),
        inset 0 1px rgba(255,255,255,.08);
}

div.categories_section {
  max-width: 100%;
  margin: auto;
}

.categories_section h2{
    color:#fff;
    font-size:34px;
    font-weight:800;
    margin-bottom:25px;
    letter-spacing:.3px;
}

.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{

    background:rgba(255,255,255,.08);

    color:#fff;

    border:1px solid rgba(255,255,255,.10);

    border-radius:999px;

    padding:12px 22px;

    transition:.25s;

    backdrop-filter:blur(8px);

}

/*.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:hover{

    background:#ff5a5f;

    border-color:#ff5a5f;

    color:white;

    transform:translateY(-4px);

    box-shadow:
        0 12px 28px rgba(255,90,95,.35);

}

/*.tag.active{

    background:#111827;

    color:white;

    border-color:#111827;

}*/
.tag.active{
    background:linear-gradient(
        135deg,
        #ff6b6b,
        #ff4d6d
    );
    border-color:transparent;
    color:white;
}
/*.tag::before{
    content:"❤";
    margin-right:3px;
    opacity:.8;
    font-size:15px;
}*/

@media(max-width:768px){


    .tag{

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

        justify-content:center;

    }
  .footer-links {
    gap:10px!important;
  }
}

@media(max-width:480px){

    .tag{

        flex:1 1 100%;

    }

}

/* 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);
    background:rgba(255,255,255,.06);
    backdrop-filter:blur(12px);
    border:1px solid rgba(255,255,255,.08);
    border-radius:24px;
    padding:30px;
    /*margin-bottom:60px;*/
    box-shadow:
        0 20px 40px rgba(0,0,0,.18),
        inset 0 1px rgba(255,255,255,.08);
}


.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:30%;
    transform:translate(-50%,-50%);
    z-index:100;
    text-align:center;
    pointer-events:none;
}

.loader-spinner p{
    margin-top:10px;
    color:white;
    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;
}

/*.footer-links{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:20px;
    flex-wrap:wrap;
    margin-bottom:6px;
}

.footer-links a{
    color:#666;
    text-decoration:none;
    font-weight:600;
    transition:.2s;
}*/

.footer-links{
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    margin-bottom:7px;
}

.footer-links a{
    color:#bbb;
    text-decoration:none;
    padding:0 12px;
    position:relative;
}

.footer-links a:not(:last-child)::after{
    content:"•";
    position:absolute;
    right:-6px;
    color:#666;
}

.footer-links a:hover{
    color:var(--primary);
}

.copyright{
    text-align:center;
    color:#888;
    font-size:14px;
}

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

/* Smooth transition */
#page-content{
    transition: filter .9s ease;
}
#page-content{
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 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;
}
