/*
Theme Name: iwork
Theme URI: https://7web.top
Author: br3t
Author URI: https://7web.top

*/
:root {
	--color-dark: #333;
	--color-gray: #999;
	--color-lightgray: #ccc;
}
body {
	margin:0;
	overscroll-behavior-y: none;
	font-family: "Montserrat", sans-serif;
	font-optical-sizing: auto;
	font-weight: 400;
	font-style: normal;
	font-size: 13px;
	color: var(--color-dark);
}
#wrapper {
	padding: 20px;
}
#hero {
	display: flex;
	gap: 10px 5%;
	flex-wrap: wrap;
	margin: 0 0 30px;
}
#hero .hero-text {
	flex: 0 0 60%;
}
#hero .hero-text .content {
	/*font-family: 'Allan', sans-serif;
	text-transform: uppercase;
	font-size: 2em;*/
}
#hero .content p {
	margin: 0 0 10px;
}
#hero .notes {
	flex: 0 0 15%;
}
#hero .contact {
	flex: 0 0 15%;
}
#hero .header,
#works .header {
    /*border-top: 1px solid var(--color-gray);*/
    color: var(--color-gray);
    font-size: 0.8em;
    padding: 10px 0 0;
    margin: 0 0 10px;
}
.works-list {
	/*display: flex;
	gap: 20px;*/
}
.works-list .column {
	flex: 0 0 calc(20% - 16px);
}
.grid-sizer {
	width: calc(20% - 16px);
}
.work-item {
	text-decoration: none;
	color: inherit;
	cursor: pointer;
	width: calc(20% - 16px);
	display: block;
	padding: 0 0 20px;
}
.work-item:hover {
	text-decoration: none;
}
.work-item .cover-image,
.work-item .cover-video {
	max-width: 100%;
	width: 100%;
	display: block;
}
.work-item .title {
	margin: 9px 0px;
}
.work-item .excerpt {
	color: var(--color-gray);
	margin: 0 0 5px;
}
.work-item .tag {
	padding: 3px 5px;
    display: inline-block;
    margin: 0 5px 0 0;
    background: var(--color-lightgray);
    font-size: 0.8em;
}
.work-item-date {
	color: var(--color-gray);
	font-size: 0.8em;
}
#lightbox {
	display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(1px);
    z-index: 100000;
    align-items: center;
    justify-content: center;
}
.lightboxed #lightbox {
	display: flex;
}
.lightboxed {
	overflow: hidden;
}
#lightbox .close {
	font-size: 30px;
    position: absolute;
    top: 5px;
    right: 5px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: url('img/cross.svg') 50% 50% #fff;
    background-size: 40px 40px;
    text-align: center;
    line-height: 40px;
    cursor:pointer;
    box-shadow: inset 0 0 0px 0px rgba(200,200,200,.5);
    transition: box-shadow ease 200ms;
}
#lightbox .close:hover {
	box-shadow: inset 0 0 7px 1px rgba(200,200,200,.5);
}
#lightbox-content {
    width: 95%;
    height: 95%;
}
#lightbox-image {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
#carousel {
	width: 100%;
	height: 100%;
	overflow: hidden;
	position: relative;
}
#carousel .slick-list,
#carousel .slick-track {
	height: 100%;
	overflow: hidden;
}
.carousel-slide {
	width: 100%;
	height: 100%;
}
.carousel-slide img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
#carousel .slick-arrow {
    position: absolute;
    top: 50%;
    left: 10px;
    border: none;
    background: url('img/arrow-left.svg') no-repeat 50% 50% #fff;
    background-size: 36px 36px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 40px;
    line-height: 50px;
    text-align: center;
    cursor: pointer;
    z-index: 2;
    margin: -25px 0 0;
    box-shadow: inset 0 0 0px 0px rgba(200,200,200,.5);
    transition: box-shadow ease 200ms;
}
#carousel .slick-arrow:hover {
	box-shadow: inset 0 0 7px 1px rgba(200,200,200,.5);
}
#carousel .slick-next {
	left: unset;
	right: 10px;
	background-image: url('img/arrow-right.svg');
}
@media (max-width: 1100px) {
	.grid-sizer,
	.work-item {
		width: calc(25% - 15px);
	}
	#hero .hero-text {
		flex: 0 0 100%;
	}
	#hero .notes {
	    flex: 0 0 80%;
	}
}
@media (max-width: 940px) {
	.grid-sizer,
	.work-item {
		width: calc(33.3333% - 16.6666px);
	}
	#hero .notes {
	    flex: 0 0 60%;
	}
	#hero .contact {
	    flex: 0 0 35%;
	}
}
@media (max-width: 720px) {
	.grid-sizer,
	.work-item {
		width: calc(50% - 10px);
	}
	#hero .notes {
	    flex: 0 0 100%;
	}
	#hero .contact {
	    flex: 0 0 100%;
	}
}
@media (max-width: 600px) {
	.grid-sizer,
	.work-item {
		width: 100%;
	}
}
/* изначально скрытые */
.work-item {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* когда появился */
.work-item.visible {
  opacity: 1;
  transform: translateY(0);
}