/* === Simple Gallery with Filter by Come2theweb (ФІНАЛЬНА МОДИФІКАЦІЯ: УНІФІКОВАНІ СТИЛІ) ==== */

.sgwf_clear{clear:both;}

/* --- АГРЕСИВНЕ ВИДАЛЕННЯ БУДЬ-ЯКОГО СКРУГЛЕННЯ З УСІХ ЕЛЕМЕНТІВ ГАЛЕРЕЇ --- */
.sgwf_c2tw_item,
.sgwf_c2tw_iteminr,
.sgwf_lb,
.sgwf_lb a,
.sgwf_lb img,
.sgwf_c2tw_iteminr img {
    border-radius: 0 !important;
}
/* -------------------------------------------------------------------------- */


.sgwf_filter {
	display: block;
	text-align: center; padding:0 0 20px;
}
.sgwf_filter ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.sgwf_filter ul li {
	display: inline-block;padding:2px;
}
.sgwf_filter ul li a {
	position: relative;
	display: block; 
	cursor: pointer;
	background: #000; /* Колір неактивної кнопки */
	padding: 10px 20px;
	color: #fff;
	
    /* --- СТИЛІ ШРИФТУ Bebas Neue --- */
	font-family: 'Bebas Neue', sans-serif;
	font-size: 16px; 
    letter-spacing: 0;
    font-weight: 400;
    /* ----------------------------- */
    
    transition:all ease-in-out 0.3s;
}

/* СТИЛЬ ПРИ НАВЕДЕННІ (Hover) */
.sgwf_filter ul li a:hover {
	background: #DD5484 !important; /* РОЖЕВИЙ КОЛІР ДЛЯ HOVER */
    color: #fff;
}

/* СТИЛЬ АКТИВНОЇ КНОПКИ (ACTIVE) - РОЖЕВИЙ КОЛІР */
.sgwf_filter ul li a.active {
	background: #DD5484 !important; /* РОЖЕВИЙ КОЛІР ДЛЯ ACTIVE */
    color: #fff !important;         /* БІЛИЙ ТЕКСТ */
    font-weight: 400;
}

/* --- ДОДАТКОВО: СТИЛІ КНОПОК ФІЛЬТРА: focus --- */
.sgwf_filter ul li a:focus,
.sgwf_filter ul li a:active {
    background: #DD5484 !important;
    color: #fff !important;
    outline: none !important; 
}
/* ------------------------------------------------------------------------------------- */

/* --- СТИЛІ ЕЛЕМЕНТІВ ГАЛЕРЕЇ (3 КОЛОНКИ) --- */

.sgwf_c2tw_item {
	/* ДОДАЄМО ВІДСТУПИ ПО 10px З УСІХ СТОРІН */
	width: 33.33%; 
	float: left;
	padding: 10px;
	box-sizing: border-box; 
}
.sgwf_lb {
	position: relative;
	display: block; 
    overflow:hidden;
}

.sgwf_spacer{width:33.33%;}
.sgwf_c2tw_iteminr h3 {
	margin: 0 !important;
	font-size: 17px !important;
	color: #fff;
	position: absolute;
	bottom:-100%; transition:all ease-in-out 0.5s;
	left: 0;
	background: rgba(0, 0, 0, 0.6);
	padding: 10px 15px;
	width: 100%;
}
.sgwf_c2tw_iteminr:hover h3{bottom:0;}

.sgwf_cntdetail {
	color: #424242;
	font-size: 13px;
	line-height: 23px;
	height: 50px;
}

.sgwf_c2tw_iteminr img {
	height: 220px !important;
	object-fit: cover;
	display: block;
	width: 100%;
}

.sgwf_come2thewe_cnt.masonry .sgwf_c2tw_iteminr img {
	height: auto;
}
.sgwf_come2thewe_cnt.masonry .sgwf_c2tw_iteminr .sgwf_cntdetail {height: auto;}

.sgwf_come2thewe_cnt {
	position: relative;
    /* КОМПЕНСАЦІЯ ВІДСТУПУ ГАЛЕРЕЇ */
    margin: 0 -10px; 
}

.loading {
	position: absolute; display:none;
	background: #fff;
	width: 100%;
	height: 100%;
	top: 0; z-index:50;
	left: 0;
}


.loading::after {
	content: '';
	width: 70px;
	height: 70px;
	poa: ;
	position: absolute;
	top:10%;
	left: 50%;
	transform: translate(-50%, -50%);
	border:7px #ccc solid;
	display: block;
	border-radius: 50px;
	border-top: 7px #3e7a3c solid;
	animation: spin 1s linear infinite;
}

.sgwf-pagination {
  text-align: center;
  padding: 10px 0;
}

/* --- СТИЛІ КНОПКИ LOAD MORE (ТЕПЕР УНІФІКОВАНІ) --- */
.sgwf-loadmore-btn {
  background: #000; /* Неактивний/базовий колір */
  color: #fff;
  padding: 14px 20px;
  border: 0;
  cursor: pointer;
    transition: all ease-in-out 0.3s;
    /* --- СТИЛІ ШРИФТУ Bebas Neue для кнопки Load More --- */
    font-family: 'Bebas Neue', sans-serif;
	font-size: 16px; 
    font-weight: 400;
    /* ---------------------------------------------------- */
}

/* ДОДАЄМО СТИЛЬ HOVER ДЛЯ LOAD MORE */
.sgwf-loadmore-btn:hover {
    background: #DD5484; /* РОЖЕВИЙ КОЛІР ПРИ НАВЕДЕННІ */
}
/* --------------------------------------------------- */


.itemwith_col1 .sgwf_c2tw_item, .itemwith_col1 .sgwf_spacer{width:100%;}
.itemwith_col2 .sgwf_c2tw_item, .sgwf_col2 .sgwf_spacer{width:50%;}
.itemwith_col3 .sgwf_c2tw_item, .sgwf_col3 .sgwf_spacer{width:33.33%;}
.itemwith_col4 .sgwf_c2tw_item, .sgwf_col4 .sgwf_spacer{width:25%;}
.itemwith_col5 .sgwf_c2tw_item, .sgwf_col5 .sgwf_spacer{width:20%;}
.itemwith_col6 .sgwf_c2tw_item, .sgwf_col6 .sgwf_spacer{width:16.66%;}
.itemwith_col7 .sgwf_c2tw_item, .sgwf_col7 .sgwf_spacer{width:14%;}
.itemwith_col8 .sgwf_c2tw_item, .sgwf_col8 .sgwf_spacer{width:12.5%;}
.itemwith_col9 .sgwf_c2tw_item, .sgwf_col9 .sgwf_spacer{width:11.11%;}
.itemwith_col10 .sgwf_c2tw_item, .sgwf_col10 .sgwf_spacer{width:10%;}


@keyframes spin {  
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg);}
}

.c2twsg_mesonry_item .sgwf_c2tw_iteminr img {height: auto !important;}

/* --- МОДИФІКОВАНІ МЕДІА-ЗАПИТИ ДЛЯ МОБІЛЬНИХ ПРИСТРОЇВ (1 КОЛОНКА) --- */

@media(max-width:767px){
	.sgwf_come2theweb .sgwf_c2tw_item{width:100%;}
	.sgwf_spacer{width:100%;}
    .sgwf_come2thewe_cnt {
        margin: 0; 
    }
}

@media(max-width:480px){
	.sgwf_come2theweb .sgwf_c2tw_item{width:100%;}
	.sgwf_spacer{width:100%;}
}