/* General
==================================================*/

html,
body {
    margin: 0;
    min-height: 100%;
    min-height: 100vh;
    line-height: 1.5;
    --color-text: #ccc;
    --color-bg: #000;
    --color-link: #fff;
    --color-link-hover: #fff;
    color: var(--color-text);
    background-color: var(--color-bg);
    font-family: Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


.no-padding {
    padding-left: 0;
    padding-right: 0;
}

.no-padding [class^="col-"] {
    padding-left: 0;
    padding-right: 0;
}

.main-container {
    padding: 100px 20px;

}

.center {
    text-align: center;
}

a {
    -webkit-transition: all .3s;
    transition: all .3s;
}

a, a:hover, a:active, a:visited, a:focus {
    text-decoration:none;
}

.uppercase {
    text-transform: uppercase;
}

.h-30 {
    height: 30px
}

.h-10 {
    height: 10px
}

.color {
    color: #fff;
    font-size: 11px;
}


/* typography
==================================================*/

h1 {
    color: #ccc;
    font-size: 40px;
    text-transform: uppercase;
}

h3 {
    color: #ccc;


}

h5 {
    color: #ccc;
}


/* preloader
==================================================*/

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #000;
    /* change if the mask should be a color other than white */
    z-index: 1000;
    /* makes sure it stays on top */
}

.pre-container {
    position: absolute;
    left: 50%;
    top: 50%;
    bottom: auto;
    right: auto;
    -webkit-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    position: relative;
    margin: 100px auto;
}

.double-bounce1,
.double-bounce2 {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #ccc;
    opacity: 0.6;
    position: absolute;
    top: 0;
    left: 0;
    -webkit-animation: bounce 2.0s infinite ease-in-out;
    animation: bounce 2.0s infinite ease-in-out;
}

.double-bounce2 {
    -webkit-animation-delay: -1.0s;
    animation-delay: -1.0s;
}

@-webkit-keyframes bounce {
    0%,
    100% {
        -webkit-transform: scale(0.0)
    }
    50% {
        -webkit-transform: scale(1.0)
    }
}

@keyframes bounce {
    0%,
    100% {
        transform: scale(0.0);
        -webkit-transform: scale(0.0);
    }
    50% {
        transform: scale(1.0);
        -webkit-transform: scale(1.0);
    }
}


/* headr
==================================================*/

.box-header {
    position: absolute;
    top: 0;
    left: 0;
    background: transparent;
    height: 50px;
    width: 100%;
    z-index: 3;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.box-header {
    height: 140px;
    background: transparent;
    box-shadow: none;
}

.box-header {
    -webkit-transition: background-color 0.3s;
    transition: background-color 0.3s;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.box-header.is-fixed {
    position: fixed;
    top: -140px;
    background-color: rgba(0, 0, 0, 0.96);
    -webkit-transition: -webkit-transform 0.3s;
    transition: -webkit-transform 0.3s;
    transition: transform 0.3s;
    transition: transform 0.3s, -webkit-transform 0.3s;
}

.box-header.is-visible {
    -webkit-transform: translate3d(0, 100%, 0);
    transform: translate3d(0, 100%, 0);
}

.box-header.menu-is-open {
    background-color: transparent;
}

.box-logo {
    display: block;
    padding: 20px;
}

.box-primary-nav-trigger {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 50px;
    background-color: #000;
}

.box-primary-nav-trigger .box-menu-text {
    color: #393939;
    text-transform: uppercase;
    font-weight: 700;
    display: none;
}

.box-primary-nav-trigger .box-menu-icon {
    display: inline-block;
    position: absolute;
    left: 50%;
    top: 50%;
    bottom: auto;
    right: auto;
    -webkit-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
    width: 33px;
    height: 2px;
    background-color: #ccc;
    -webkit-transition: background-color 0.3s;
    transition: background-color 0.3s;
    list-style: none;
}

.box-primary-nav-trigger .box-menu-icon::before,
.box-primary-nav-trigger .box-menu-icon:after {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    background-color: #ccc;
    right: 0;
    -webkit-transition: -webkit-transform .3s, top .3s, background-color 0s;
    -webkit-transition: top .3s, background-color 0s, -webkit-transform .3s;
    transition: top .3s, background-color 0s, -webkit-transform .3s;
    transition: transform .3s, top .3s, background-color 0s;
    transition: transform .3s, top .3s, background-color 0s, -webkit-transform .3s;
}

.box-primary-nav-trigger .box-menu-icon::before {
    top: -10px;
}

.box-primary-nav-trigger .box-menu-icon::after {
    top: 10px;
}

.box-primary-nav-trigger .box-menu-icon.is-clicked {
      background-color: rgba(255, 255, 255, 0);
}

.box-primary-nav-trigger .box-menu-icon.is-clicked::before,
.box-primary-nav-trigger .box-menu-icon.is-clicked::after {

}

.box-primary-nav-trigger .box-menu-icon.is-clicked::before {
    top: 0;
    -webkit-transform: rotate(135deg);
    transform: rotate(135deg);

}

.box-primary-nav-trigger .box-menu-icon.is-clicked::after {
    top: 0;
    -webkit-transform: rotate(225deg);
    transform: rotate(225deg);
}

.box-primary-nav-trigger {
    width: 100px;
    background-color: transparent;
    height: 30px;
    line-height: 30px;
    top: 50%;
    bottom: auto;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
}

.box-primary-nav-trigger .box-menu-text {
    display: inline-block;
}

.box-primary-nav-trigger .box-menu-icon {
    margin-right: 20px;
    -webkit-transform: translateX(0) translateY(-50%);
    transform: translateX(0) translateY(-50%);
}

.box-primary-nav {
    position: fixed;
    right: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2;
    text-align: right;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    -webkit-transform: translateX(100%);
    transform: translateX(100%);
    -webkit-transition-property: -webkit-transform;
    transition-property: -webkit-transform;
    transition-property: transform;
    transition-property: transform, -webkit-transform;
    -webkit-transition-duration: 0.4s;
    transition-duration: 0.4s;
    list-style: none;
}

.box-primary-nav li {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-transform: capitalize;
}

.box-primary-nav a {
    display: inline-block;
    font-size: 22px;
    padding: 0.5em 0;
    margin-right: 22px;
    border-radius: 0.25em;
    -webkit-transition: all 0.2s;
    transition: all 0.2s;
    color: #ccc;
    text-transform: capitalize;
    font-weight: 400;
}


.no-touch .box-primary-nav a:hover {
    text-decoration: none;
    color: #fff;
}

.box-primary-nav .box-label {
    color: #fff;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 17px;
    margin: 2.4em 0 .8em;
}

.box-primary-nav .box-social {
    display: inline-block;
    margin: 10px .2em;
}

.box-primary-nav .box-social a {
    width: 30px;
    height: 30px;
    padding: 0;
    font-size: 1rem;
}

.box-primary-nav.is-visible {
    -webkit-transform: translateY(0);
    transform: translateY(0);
}

.box-primary-nav {
    padding: 110px 0 0;
}



/* box-intro
==================================================*/

.box-intro {
    text-align: center;
    display: table;
    height: 100vh;
    width: 100%;

}

.box-intro .table-cell {
    display: table-cell;
    vertical-align: middle;
}

.box-intro em {
    font-style: normal;
    text-transform: none

}

.box-intro h5 {
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #000;
    line-height: 1.7
}


/* mouse effect */

.mouse {
    position: absolute;
    width: 22px;
    height: 42px;
    bottom: 40px;
    left: 50%;
    margin-left: -12px;
    border-radius: 15px;
    border: 2px solid #888;
    -webkit-animation: intro 1s;
    animation: intro 1s;
}

.scroll {
    display: block;
    width: 3px;
    height: 3px;
    margin: 6px auto;
    border-radius: 4px;
    background: #888;
    -webkit-animation: finger 2s infinite;
    animation: finger 2s infinite;
}

@-webkit-keyframes intro {
    0% {
        opacity: 0;
        -webkit-transform: translateY(40px);
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

@keyframes intro {
    0% {
        opacity: 0;
        -webkit-transform: translateY(40px);
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

@-webkit-keyframes finger {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        -webkit-transform: translateY(20px);
        transform: translateY(20px);
    }
}

@keyframes finger {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        -webkit-transform: translateY(20px);
        transform: translateY(20px);
    }
}


/* text rotate */

.box-headline {
    font-size: 130px;
    line-height: 1.0;
}

.box-words-wrapper {
    display: inline-block;
    position: relative;
}

.box-words-wrapper b {
    display: inline-block;
    position: absolute;
    white-space: nowrap;
    left: 0;
    top: 0;
}

.box-words-wrapper b.is-visible {
    position: relative;
}

.no-js .box-words-wrapper b {
    opacity: 0;
}

.no-js .box-words-wrapper b.is-visible {
    opacity: 1;
}

.box-headline.rotate-2 .box-words-wrapper {
    -webkit-perspective: 300px;
    perspective: 300px;
}

.box-headline.rotate-2 i,
.box-headline.rotate-2 em {
    display: inline-block;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.box-headline.rotate-2 b {
    opacity: 0;
}

.box-headline.rotate-2 i {
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-transform: translateZ(-20px) rotateX(90deg);
    transform: translateZ(-20px) rotateX(90deg);
    opacity: 0;
}

.is-visible .box-headline.rotate-2 i {
    opacity: 1;
}

.box-headline.rotate-2 i.in {
    -webkit-animation: box-rotate-2-in 0.4s forwards;
    animation: box-rotate-2-in 0.4s forwards;
}

.box-headline.rotate-2 i.out {
    -webkit-animation: box-rotate-2-out 0.4s forwards;
    animation: box-rotate-2-out 0.4s forwards;
}

.box-headline.rotate-2 em {
    -webkit-transform: translateZ(20px);
    transform: translateZ(20px);
}

.no-csstransitions .box-headline.rotate-2 i {
    -webkit-transform: rotateX(0deg);
    transform: rotateX(0deg);
    opacity: 0;
}

.no-csstransitions .box-headline.rotate-2 i em {
    -webkit-transform: scale(1);
    transform: scale(1);
}

.no-csstransitions .box-headline.rotate-2 .is-visible i {
    opacity: 1;
}

@-webkit-keyframes box-rotate-2-in {
    0% {
        opacity: 0;
        -webkit-transform: translateZ(-20px) rotateX(90deg);
    }
    60% {
        opacity: 1;
        -webkit-transform: translateZ(-20px) rotateX(-10deg);
    }
    100% {
        opacity: 1;
        -webkit-transform: translateZ(-20px) rotateX(0deg);
    }
}

@keyframes box-rotate-2-in {
    0% {
        opacity: 0;
        -webkit-transform: translateZ(-20px) rotateX(90deg);
        transform: translateZ(-20px) rotateX(90deg);
    }
    60% {
        opacity: 1;
        -webkit-transform: translateZ(-20px) rotateX(-10deg);
        transform: translateZ(-20px) rotateX(-10deg);
    }
    100% {
        opacity: 1;
        -webkit-transform: translateZ(-20px) rotateX(0deg);
        transform: translateZ(-20px) rotateX(0deg);
    }
}

@-webkit-keyframes box-rotate-2-out {
    0% {
        opacity: 1;
        -webkit-transform: translateZ(-20px) rotateX(0);
    }
    60% {
        opacity: 0;
        -webkit-transform: translateZ(-20px) rotateX(-100deg);
    }
    100% {
        opacity: 0;
        -webkit-transform: translateZ(-20px) rotateX(-90deg);
    }
}

@keyframes box-rotate-2-out {
    0% {
        opacity: 1;
        -webkit-transform: translateZ(-20px) rotateX(0);
        transform: translateZ(-20px) rotateX(0);
    }
    60% {
        opacity: 0;
        -webkit-transform: translateZ(-20px) rotateX(-100deg);
        transform: translateZ(-20px) rotateX(-100deg);
    }
    100% {
        opacity: 0;
        -webkit-transform: translateZ(-20px) rotateX(-90deg);
        transform: translateZ(-20px) rotateX(-90deg);
    }
}


/* portfolio section
==================================================*/

.portfolio .categories-grid span {
    font-size: 30px;
    margin-bottom: 30px;
    display: inline-block;
}

.portfolio .categories-grid .categories ul li {
    list-style: none;
    margin: 20px 0;
}

.portfolio .categories-grid .categories ul li a {
    display: inline-block;
    color: #000;
    padding: 0 10px;
    margin: 0 10px;
    -webkit-transition: all .2s ease-in-out .2s;
    transition: all .2s ease-in-out .2s;
}

.portfolio .categories-grid .categories ul li a:hover,
.portfolio .categories-grid .categories ul li a:focus {
    text-decoration: none;
}

.portfolio .categories-grid .categories ul li a.active {
    margin-left: 0;
    background-color: #000;
    padding: 0px 20px;
    color: black;
    border-radius: 25px;
    text-decoration: none;
}

.portfolio_filter {
    padding-left: 0;
}

.portfolio_item {
    position: relative;
    overflow: hidden;
    display: block;
}

.portfolio_item .portfolio_item_hover {
    position: absolute;
    top: 0px;
    left: 0px;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, .8);
    -webkit-transform: translate(-100%);
    transform: translate(-100%);
    opacity: 0;
    -webkit-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;

}

.portfolio_item .portfolio_item_hover .item_info {
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    padding: 10px;
    width: 100%;
    font-weight: bold;
}

.portfolio_item .portfolio_item_hover .item_info span {
    display: block;
    color: #fff;
    font-size: 18px;
    -webkit-transform: translateX(-100px);
    transform: translateX(-100px);
    -webkit-transition: all .2s ease-in-out .2s;
    transition: all .2s ease-in-out .2s;
    opacity: 0;
}

.portfolio_item .portfolio_item_hover .item_info em {
    font-style: normal;
    display: inline-block;
    background-color: #ffbf00;
    padding: 5px 20px;
    border-radius: 25px;
    color: #333;
    margin-top: 10px;
    -webkit-transform: translateX(-100px);
    transform: translateX(-100px);
    -webkit-transition: all .3s ease-in-out .3s;
    transition: all .3s ease-in-out .3s;
    opacity: 0;
    font-size: 10px;
    letter-spacing: 2px;
}

.portfolio_item:hover .portfolio_item_hover {
    opacity: 1;
    -webkit-transform: translateX(0);
    transform: translateX(0);
}

.portfolio_item:hover .item_info em,
.portfolio_item:hover .item_info span {
    opacity: 1;
    -webkit-transform: translateX(0);
    transform: translateX(0);
}

.portfolio .categories-grid .categories ul li {
    float: left;

}

.portfolio .categories-grid .categories ul li a {
    padding: 0 10px;
    -webkit-transition: all .2s ease-in-out .2s;
    transition: all .2s ease-in-out .2s;
}

.portfolio_filter {
    padding-left: 0;
    display: inline-block;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 50px;
}

.portfolio-inner {
    padding-bottom: 0 !important;
    padding-top: 0px;
    margin-left: 20px;
}

/* Carousel
==================================================*/

#carousel-example-generic img {
  width: 100% !important;
  height: auto;
}

.carousel-indicators li {
    width: 1.5rem;
    height: 1.5rem;
    margin: 0.5rem;
    border-radius: 100%;
    border: 0;
    background: #464646;
}

.carousel-indicators li.active {
    width: 1.5rem;
    height: 1.5rem;
    margin: 0.5rem;
    border-radius: 100%;
    border: 0;
    background: #ccc;
}

.carousel-indicators {
    position: absolute;
    bottom: -80px;
  }


/* footer
==================================================*/

footer {
    padding: 20px 0 20px 0;
    bottom:0px;
    width:100%;
    background: #000;
}

footer div {
    display: inline-block;
    vertical-align: top;
}

footer div p {
  position: relative;
}


.social a {
  display: inline-block;
  vertical-align: top;
  font-size: 16px;
  color: #ccc;
  text-decoration: none;
  border-bottom: 0;
  height: 17px;
  line-height: 17px;
  margin: 3px 20px 0 0;
  background-position: left center;
  background-repeat: no-repeat;
}

.social a:hover {
    color: #fff;
}

.footer-copyright p, .footer-address p, .footer-phone-email p, .footer-eu p {
  padding-left: 20px;
}

.footer-phone-email p a {
  display: inline-block;
  color: #ccc;
}

.footer-phone-email a:hover {
  color: #fff;
}


@media only screen and (max-width: 768px) {
  .footer-social p { font-size: 0.625rem; letter-spacing: 0.2em; }
}
@media only screen and (max-width: 640px) {
  footer div { display: block; width: 100%; margin-bottom: 20px; }
}


#footer-smallpage {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: #000;
}


/* backto top
==================================================*/

.cd-top {
    display: inline-block;
    height: 40px;
    width: 40px;
    position: fixed;
    bottom: 40px;
    line-height: 40px;
    font-size: 20px;
    right: 10px;
    text-align: center;
    color: #000;
    background: rgba(255, 255, 255, 0.9);
    visibility: hidden;
    opacity: 0;
    -webkit-transition: opacity .3s 0s, visibility 0s .3s;
    transition: opacity .3s 0s, visibility 0s .3s;
}

.cd-top.cd-is-visible,
.cd-top.cd-fade-out,
.no-touch .cd-top:hover {
    -webkit-transition: opacity .3s 0s, visibility 0s 0s;
    transition: opacity .3s 0s, visibility 0s 0s;
}

.cd-top.cd-is-visible {
    /* the button becomes visible */
    visibility: visible;
    opacity: 1;
}

.cd-top.cd-fade-out {
    opacity: .75;
}

.no-touch .cd-top:hover,
.no-touch .cd-top:focus {
    background-color: #fff;
    opacity: 1;
    color: #000;
}


/* About page
==================================================*/

.top-bar {
    color: #000;
    padding: 140px 0 10px;
    text-align: left;
}

.top-bar h1 {
    font-size: 30px;
    margin-left: 20px;
    font-weight: 700;
    color: #e6e6e6;
    line-height: 50px;
}

.top-bar p {
    font-size: 15px;
    margin-left: 20px;
    font-weight: 500;
    color: #ccc;
}

.top-bar p a {
    color: #ccc;
}

.top-bar p a:hover,
.top-bar p a:focus {
    color: #fff;
    text-decoration: none;
}

.href {
    color: #ccc;
    margin-bottom: 0;
}

.href:hover {
    color: #fff;
    text-decoration: none;
    margin-bottom: 0;
}


/* contact page
==================================================*/



.contact-info {
    margin-top: 0px;
    display: inline-block;
}

.contact-info i {
    height: 30px;
    width: 30px;
    display: inline-block;
    background: #000;
    text-align: center;
    line-height: 33px;
    margin-right: 10px;
    color: #fff;
    font-size: 21px;
}

.contact-info p {
    display: inline-block;
    margin-right: 20px;
}


/* single project page
==================================================*/

.project-container {
    padding: 80px 0;
    margin-left: 10px;
}

.cat-ul {
    padding-left: 0;
    list-style: none
}

.cat-ul li i {
    margin-right: 10px;
    color: #ffbf00;
}


/* Responsive media queries
==================================================*/

@media (max-width: 991px) {
    .portfolio .categories-grid span {
        margin-bottom: 0;
        text-align: center;
        width: 100%;
    }
    .portfolio .categories-grid .categories ul li {
        text-align: center;
    }
    .portfolio .categories-grid .categories ul li a {
        margin-left: 0;
    }
    .col-md-6 h3 {
        margin-top: 30px;
    }
    .main-container {
        padding: 100px 20px;

    }
    .box-primary-nav {
        padding: 110px 0 0;
    }

    .box-primary-nav a {
        padding: 0.4em 0px;
        font-size: 22px;
    }

    .box-primary-nav .box-social a {
        font-size: 1rem;
    }
}

@media only screen and (max-width: 670px) {
    .box-headline {
        font-size: 12px;
    }
    .box-intro h5 {
        font-size: 12px;
    }

    .box-primary-nav {
        padding: 110px 0 0;
    }

    .box-primary-nav a {
        padding: 0.35em 0px;
        font-size: 20px;
    }
    .main-container {
        padding: 100px 20px;

    }
    .box-primary-nav .box-social a {
        font-size: 1rem;
    }
    .top-bar h1 {
        font-size: 40px;
        line-height: 30px;
    }
    .portfolio .categories-grid .categories ul li {
        float: none;
    }
}

@media only screen and (max-width: 520px) {
    .box-headline {
        font-size: 80px;
    }
    .box-intro h5 {
        font-size: 12px;
    }
    .main-container {
        padding: 50px 0;
    }
    .main-container {
        padding: 100px 20px;

    }
}

@media only screen and (max-width: 420px) {
    .box-headline {
        font-size: 50px;
    }
    .box-intro h5 {
        font-size: 12px;
    }
    .top-bar h1 {
        font-size: 30px;
        line-height: 30px;
    }
    .main-container {
        padding: 100px 20px;

    }
}

/* ===== Lightbox overlay — bulletproof centering on iPhone ===== */
#lightbox-overlay {
  display: none !important;
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;     /* fallback */
  height: 100svh !important;    /* iOS 16+ dynamic viewport */
  height: 100dvh !important;    /* iOS 17+ dynamic viewport */
  background: rgba(0,0,0,0.95) !important;
  z-index: 9999 !important;
  overflow: hidden !important;  /* prevent scrolling underneath */
}

#lightbox-overlay.show { display: block !important; }

/* A simple stage to host the absolutely centered image */
#lightbox-stage {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
}

/* --- Absolute centering is the key --- */
#lightbox-img {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;

  width: auto !important;
  height: auto !important;
  max-width: calc(100vw - 24px) !important;
  max-height: calc(100svh - 24px) !important;   /* iOS dynamic */
  max-height: calc(100dvh - 24px) !important;   /* newer iOS */
  object-fit: contain !important;
  display: block !important;
  margin: 0 !important;
  box-shadow: 0 0 40px #000;
}

/* Controls */
#lightbox-close,
#lightbox-prev,
#lightbox-next {
  position: absolute !important;
  z-index: 10001 !important;
  opacity: 0.8;
  transition: opacity 0.2s;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lightbox-close {
  top: calc(16px + env(safe-area-inset-top));
  right: calc(16px + env(safe-area-inset-right));
  width: 36px;
  height: 36px;
}

#lightbox-prev,
#lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
}
#lightbox-prev { left: calc(12px + env(safe-area-inset-left)); }
#lightbox-next { right: calc(12px + env(safe-area-inset-right)); }

#lightbox-close:hover,
#lightbox-prev:hover,
#lightbox-next:hover { opacity: 1; }

#lightbox-close svg,
#lightbox-prev svg,
#lightbox-next svg { width: 100%; height: 100%; display: block; }

#lightbox-close line,
#lightbox-prev polyline,
#lightbox-next polyline {
  stroke: #fff;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Hide arrows + make overlay image full width on small screens */
@media (max-width: 700px) {
  #lightbox-prev,
  #lightbox-next {
    display: none !important;
  }

  #lightbox-overlay {
    overflow: hidden !important;  /* kill accidental scrollbars */
  }

  #lightbox-img {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;

    width: 100% !important;        /* safer than 100vw on iOS */
    height: auto !important;
    max-width: 100% !important;
    max-height: 100svh !important; /* iOS 16+ safe viewport height */
    max-height: 100dvh !important; /* iOS 17+ dynamic viewport height */
    object-fit: contain !important;
    display: block !important;
    margin: 0 !important;
    box-shadow: 0 0 40px #000;
  }
}

/* === Mobile PORTRAIT footer — clean, explicit breakpoints === */
/* Tier 1: iPhone portrait and similar up to 640px */
@media only screen and (max-width: 640px) and (orientation: portrait) {
  footer { padding-top: 10px !important; padding-bottom: 10px !important; }
  /* reduce stacking gap between the column blocks */
  footer div { margin-bottom: 10px !important; }

  /* condense rows inside each column */
  .footer-copyright p, .footer-address p, .footer-phone-email p, .footer-eu p {
    margin: 0 !important;
    line-height: 1.08 !important;
    padding-left: 12px !important;
  }
  footer p + p { margin-top: 3px !important; }

  /* slightly smaller portrait text */
  footer, footer p, footer a { font-size: 14px !important; }

  /* social row tightening */
  .social { margin-top: 3px !important; }
  .social a {
    margin-right: 10px !important;
    height: 14px !important;
    line-height: 14px !important;
    font-size: 14px !important;
  }
}

/* Tier 2: very narrow phones (≤480px) — tighten a bit more */
@media only screen and (max-width: 480px) and (orientation: portrait) {
  footer { padding-top: 8px !important; padding-bottom: 8px !important; }
  footer div { margin-bottom: 8px !important; }

  .footer-copyright p, .footer-address p, .footer-phone-email p, .footer-eu p {
    line-height: 1.06 !important;
    padding-left: 10px !important;
  }
  footer p + p { margin-top: 2px !important; }

  footer, footer p, footer a { font-size: 13px !important; }
}
/* === END Mobile PORTRAIT footer === */












