/*--------- colors -------*/
:root {
    --gold: #ffc000;
    --gold-light: #ffe28a;
    --gold-2: #eca660;
    --white: rgb(241, 237, 237);
    --light-grey: rgb(173, 173, 173);
    --text: #333;
    --black: rgb(0, 0, 0);
    --dark-violet: #241849;
    --dark-blue: #0b002b;
    --light-violet: #612691;
    
}



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

html {
    scroll-behavior: smooth;
    
}




body {
    line-height: 1.3;
    font-weight: 400;
    font-family: 'DM Sans', sans-serif;
    background-color: var(--black);
}


/*PRELOADER*/

.loader-container {
    width: 100%;
    height: 100vh;
    background-color: #241849;
    position: fixed;
    display: flex;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid;
    color: var(--gold-2);
    border-radius: 50%;
    border-top-color: transparent ;
    animation: loader 1.2s linear infinite;
}

@keyframes loader {
    25%{
        color: #2c1d58;
    }
    50%{
        color: #03197c;
    }
    75%{
        color: #800360;
    }
    to{
        transform: rotate(360deg);
    }
}



/*HEADER*/

li {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 500;
    font-family: "Cormorant Upright", serif;
}

a:hover {
    color: var(--gold-2);
}



.header {
    position: relative;
    padding: 0 2rem;
}

.navbar {
    width: 100%;
    height: 5px;
    margin: 30px auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    position: absolute;
    z-index: 999;
}


.logo img {
    margin-top: 55px;
      width: 50px;
      height: 50px;
    }

.navbar .logo {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: "Cormorant Upright", serif;

    text-decoration: none;
    color: var(--white);
    cursor:context-menu;

    padding-left: 3%;
}

.navbar .links {
    display: flex;
    gap: 2rem;
    text-align: center;
    justify-content: center;
}

.navbar .toggle_btn {
    color: var(--gold-2);
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    margin-right: 3%;

}

/*button*/

.action_btn {
    background-color: var(--gold-2);
    color: var(--white);
    padding: 0.5rem 1rem;
    border: none;
    outline: none;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: scale 0.2 ease;
    margin-right:3%;
}


.action_btn:hover {
    scale: 1.05;
    color: var(--white);
}

.action_btn:active {
    scale: 0.95;
}

/*dropdown menu*/

.dropdown_menu {
    display: none;
    position: absolute;
    right: 2rem;
    top: 60px;
    height: 0px;
    width: 350px;
    backdrop-filter: blur(15px);
    border-radius: 10px;
    overflow: hidden;
    transition: height 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dropdown_menu.open {
    height: 410px;
    z-index: 1;
}

.dropdown_menu li {
    padding: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown_menu .action_btn {
    width: 100%;
    display: flex;
    justify-content: center;
}


/*GALERIE*/

main {
    padding: 5vw;
    display: grid;
    gap: 2vw;
    grid-template-columns: repeat(3, 1fr);
}

.item {
    height: 32vw;
    border-radius: 2vw;
    overflow: hidden;
    position: relative;
    padding: 2vw;
    color: var(--white);
    display: flex;
    flex-direction: column;
    border-bottom: 0 solid var(--white);
    cursor: pointer;
}

.item h2 {
    font-size: 2rem;
    margin-bottom: 1.5vw;
    font-weight: 700;
    font-family: "Cormorant Upright", serif;
    font-weight: bolder;
}

.item p {
    width: 50%;
    font-weight: 300;
    font-size: 1rem;
    margin-bottom: 2vw;
    color: var(--white);
    font-family: "Cormorant Upright", serif;
}

.item .labels {
    width: 50%;
    font-family: "Cormorant Upright", serif;
    font-weight: bold;
}

.item .labels label {
    border: 1px solid var(--text);
    font-size: 0.8rem;
    padding: 0.5vw 1vw;
    border-radius: 2vw;
    display: inline-block;
    margin-bottom: 0.7vw;
}

.item .details {
    display: none;
    opacity: 0;
    position: absolute;
    top: 20%;
    left: 2vw;
    font-weight: 500;
    font-family: "Cormorant Upright", serif;

}

.item .details h4 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1vw;
}

.item .details h4 span {
    font-weight: 400;
    display: block;
    opacity: 0.6;
}

.item .description {
    display: none;
    opacity: 0;
    position: absolute;
    bottom: 15%;
    right: 2vw;
    width: 30vw;
    font-size: 1rem;
    font-weight: 300;
    color: var(--white);
    font-family: "Cormorant Upright", serif;
}

.item .bottom {
    margin-top: auto;
    display: flex;
    gap: 1vw;
}

.item .bottom button {
    font-family: "Cormorant Upright", serif;
}


/*obrazky na kartickach*/
.item img {
    position: absolute;
    top: -2vw;
    right: -6vw;
    width: 30vw;
    height: auto;
    z-index: -1;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.5));
}

/*pozadi na kartičce*/
.item .bg {
    background-color: var(--black);
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}


/*fullscreen*/
.item.full-screen {
    position: fixed;
    z-index: 10;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/*button "detail" */

button {
    cursor: pointer;
    outline: none;
    border: none;
    padding: 0.5vw 1.9vw;
    border-radius: 2vw;
    font-size: 1.2rem;
    font-family: 'DM Sans', sans-serif;
}

button.primary {
    background-color:var(--light-grey);
    color: var(--black);
    font-weight: 700;
    transition: background-color 0.3s ease, color 0.3s ease;
}

button.primary:hover {
    background-color: var(--gold-2);
    color: var(--white);
}

button.secondary {
    background-color: transparent;
    color: var(--white);
    font-weight: 500;
}



/* SCROLL BAR */
::-webkit-scrollbar {
    display:none ;
  }
  
  /* SCROLL UP */
  .scrollup {
    position: fixed;
    right: 1rem;
    bottom: -50%;
    background-color: hsla(0, 0%, 100%, .1);
    border-radius: 25px;
    padding: 6px;
    display: inline-flex;
    color: var(--title-color);
    font-size: 1.25rem;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px); 
    z-index: var(--z-tooltip);
    transition: bottom .4s, transform .4s;
  }
  
  .scrollup:hover {
    transform: translateY(-.25rem);
  }
  
  /* Show Scroll Up */
  .show-scroll {
    bottom: 3rem;
  }



/*RESPONSIVITA*/

@media (max-width: 1200px) {

    .navbar .links a,
    .navbar .action_btn,
    .navbar .logo {
        font-size: 18px;
    }

}

@media (max-width: 1199px) {

    main {
        grid-template-columns: repeat(2, 1fr);
        padding: 60px;
    }

}
 
@media (max-width: 992px) {
    .navbar .links,
    .navbar .action_btn {
        display: none;
    }

    .navbar .toggle_btn {
        display: block;
    }

    .dropdown_menu {
        display: block;
    }
}

@media (max-width: 964px) {
    main {
        grid-template-columns: repeat(1, 1fr);
      }

    .item {
        width: 65vw;
        margin: auto;
    }

    .item img {
        right: -1vw;
    }
}

@media (max-width: 924px) {

    .item {
        width: 80vw;
        height: 38vh;
        margin: auto;
    }

    .item img{
        width: 18rem;
    }

}


@media (max-width: 576px) {
    .dropdown_menu{
        left: 2rem;
        width: unset;
    }

    .item .labels,
    .item .details,
    .item .bottom{
        font-weight: 100px;
    }
}

@media (max-width: 504px) {

    main{
        padding: 60px 0;
    }

    .item {
        width: 90vw;
    }

    .item p{
        width: 62%;
    }
}

/*Fullscreen*/
.fullscreen-style{
    transition: all 0.5s ease-in-out;
}

.fullscreen-style .item h2{
    margin-top: 2rem !important;
}

.fullscreen-style .item img{
    width: 43rem !important;
}

.fullscreen-style .item .bg{
    position: fixed !important;
}

@media only screen and (max-width: 1199px){
    .fullscreen-style .item img{
        position: relative !important;
        right: auto !important;
        top: auto !important;
        width: 50% !important;
        margin: auto !important;
    }   

    .fullscreen-style .item .bottom{
        display: none !important;
    }

    .fullscreen-style .item .details{
        position: relative !important;
        top: auto !important;
        left: auto !important;
    }

    .fullscreen-style .item .description{
        position: relative !important;
        bottom: auto !important;
        right: auto !important;
        width: 90% !important;
    }

    .fullscreen-style .item p{
        display: none !important;
    }

    .fullscreen-style .item .labels{
        display: none !important;
    }
}

@media only screen and (max-width: 800px){
    .fullscreen-style .item img{
        width: 70% !important;
    }   
}

@media only screen and (max-width: 500px){
    .fullscreen-style .item img{
        width: 100% !important;
    }   
}