/*
Theme Name: Galleria Metropolia Child
Theme URI: http://cmsmasters.net/galleria-metropolia-child/
Author: cmsmasters
Author URI: http://cmsmasters.net/
Description: Galleria Metropolia Child Theme
Template: galleria-metropolia
Version: 1.0.0
License:
License URI:
Text Domain: galleria-metropolia-child
Tags: one-column, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-image-header, featured-images, flexible-header, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready
*/

/* Share Posts */
.share_posts {
  padding: 10px 0 0;
  position: relative;
  overflow: hidden;
}


/* páginas de categoria especiais */
.category-gallery {
    margin-bottom: 30px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4-column layout for larger screens */
    gap: 20px;
}

.gallery-item {
    text-align: center;
}

.gallery-thumbnail {
    width: 100%;
    padding-bottom: 100%; /* Makes the container square */
    position: relative;
}

.gallery-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the square area */
	border-radius: 15px;
}

.gallery-post-title {
    margin-top: 10px;
    font-size: 16px;
}

/* Media query for mobile devices (screens 768px and below) */
@media only screen and (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr); /* 2-column layout for mobile */
    }
}

/* categorias especiais parte 2 */
.sibling-categories {
    margin-top: 20px;
}

.sibling-category-list {
    list-style: none;
    padding: 0;
    display: flex;
	flex-wrap: wrap;
    gap: 12px 2px;		
}

.sibling-category-list li {
    margin-right: 10px;
}

.sibling-category-list li a {
    text-decoration: none;
    color: #252930;
    border: 1px solid #252930;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;	
}

.sibling-category-list li a:hover {
    background-color: #252930;
    color: #fff;
}

.sibling-category-list li {
  padding-top: 0px !important;  
}


/* search mobile */
@media only screen and (max-width: 768px) {
  #page .cmsmasters_archive_type {
    display: flex;
  }
}

@media only screen and (max-width: 768px) {
  #page .cmsmasters_archive_type .cmsmasters_archive_item_img_wrap {
    max-width: 32%;
    margin: 0 auto;
    min-width: 150px;
    margin: 0 35px 0 0;
	display: none;
  }
.cmsmasters_archive_type {
padding: 0px;
}
.cmsmasters_archive_type .cmsmasters_archive_item_info {
  padding: 0 0 0px;
  position: relative;
  overflow: hidden;
}
span.cmsmasters_archive_item_user_name {
  display: none !important;
}
.cmsmasters_archive_item_date_wrap.entry-meta {
  display: none;
}
.cmsmasters_archive_item_cont_wrap {
  padding-bottom: 20px;
}
.cmsmasters_archive_item_content.entry-content {
  display: none;
}
.button_to_cart_wrap {
  display: none;
}
}

/* Featured Image */
.cmsmasters_img_wrap {
  text-align: left;
}

/* category-locais-a-visitar */
/* Container for the entire gallery */
.category-locais-a-visitar .posts-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns on desktop */
    gap: 20px; /* Spacing between items */
	margin-bottom: 50px;
}

/* Individual gallery item */
.category-locais-a-visitar .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px; /* Rounded corners for the entire item */
  /*  padding-bottom: 100%; */ /* This makes the container square */ 
}

/* Image and link container */
.category-locais-a-visitar .gallery-link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Medium-sized image */
.category-locais-a-visitar .gallery-item img {
    display: block;
    width: 100%;
    height: 280px;
    object-fit: cover; /* Ensures image covers the entire container while maintaining aspect ratio */
    border-radius: 15px; /* Rounded corners for the image */
}

/* Overlay: Dark transparent background over the image */
.category-locais-a-visitar .gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6); /* Dark overlay with 60% opacity */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0; /* Initially hidden */
    transition: opacity 0.3s ease; /* Smooth transition */
    border-radius: 15px; /* Ensure overlay corners match image */
}

/* Post title styling inside the overlay */
.category-locais-a-visitar .gallery-item .post-title {
    color: #fff;
    font-size: 18px;
    text-align: center;
    padding: 10px;
    line-height: 1.2;
}

/* Hover effect: Show the overlay when hovering */
.category-locais-a-visitar .gallery-item:hover .overlay {
    opacity: 1;
}

/* Responsive design: 2 columns on mobile */
@media (max-width: 768px) {
   .category-locais-a-visitar .posts-gallery {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on smaller screens */
    }
}

.category-locais-a-visitar .child-category-posts-gallery p {
  padding: 0 0 60px;
  margin: 0;
}


/* border tabelas */
.cmsmasters_table_cell_alignleft {
  border: 1px solid #d8dadc;
}

/* tabs dos videos */
.cmsmasters_toggles .cmsmasters_toggle_title a {
  padding: 0px 20px 5px 0;
}

/* imagens topo projectos */
.cmsmasters_open_project .full-width {
    width: 100%;
    height: 650px !important;
    object-fit: cover; /* Ensures the image covers the area, cropping as needed */
    object-position: center; /* Centers the image crop */
}
.cmsmasters_project_puzzle .full-width.wp-post-image {
    width: 100%;
    height: 100% !important;
    object-fit: cover; /* Ensures the image covers the area, cropping as needed */
    object-position: center; /* Centers the image crop */
}

/* zona de share dos projectos */
.single-project aside.share_posts {
  padding: 100px 0 0 !important;  
}

/* aprender no museu */
.one_fourth p{
  padding: 20px;
  background-color: #f4f4f4;
}

.page-id-13546 .cmsmasters_text {
  background: white;
  padding: 20px 20px 1px 20px;
}

/* categorias na loja */
.product-categories-horizontal {
    display: flex;
    justify-content: center;
    padding: 10px 0;
	margin-top: -20px;
}

.product-categories-horizontal a {
    margin: 0 15px;
    text-decoration: none;
    font-weight: bold;    
	color: #252930;
    border: 1px solid #252930;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.product-categories-horizontal a:hover {
background-color: #252930;
    color: #fff;
}

/* remover sku nos produtos variáveis */
.sku_wrapper {
  display: none !important;
}

/* bottom widget */
#text-7 {
  padding-left: 50px !important;
}

/* espaçamento menu after lang */
ul.navigation > li > a {
padding: 0 10px;
}

@media only screen and (max-width: 1440px) {
ul.navigation > li > a {
padding: 0 6px;
}
}

/* menu na search bar */
@media only screen and (min-width: 768px) {
.mid_search_but_wrap {
  padding-top: 17px !important;
}
}

/* em mobile */
@media only screen and (max-width: 768px) {
#gt_float_wrapper {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}
.gt_float_switcher .gt_options.gt-open {
	padding-top: 10px !important;  
	width: 140px !important;
}
}

@media only screen and (max-width: 1024px) {
.gt_float_switcher .gt_options.gt-open {
  opacity: 1 !important;
  transform: translateY(0px) !important;
  width: 103px !important;
}

.gt_float_switcher .gt_options {
   background: #252930 !important;
}

.gt_options.gt-open {
    display: ruby !important;
}
}

@media only screen and (min-width: 768px) and (max-width: 1024px) {
  .mid_search_but_wrap {
    padding-top: 30px !important;
  }
}

/* botão linguagem gestual 
.ufw_pp {
    display: none !important;
}*/

#floating-icon {
    position: fixed;
    bottom: 16px;
    right: 20px;
    z-index: 1000;
}

#floating-icon a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: #dd3333; /* vermelho */
    color: #fff; /* Cor do ícone */
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
}

#floating-icon a:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
    background-color: #bd2020; /* Cor ao passar o rato */
}

#floating-icon i {
    font-size: 24px; /* Tamanho do ícone */
}

/* botão close video */
.ays-pb-modal-close {
  top: 7px !important;
  right: 20px !important;
}

.ays-pb-modal-close_4, .ays-pb-modal-close_2, .ays-pb-modal-close_6, .ays-pb-modal-close_14 {
  top: -5px !important;
  right: 20px !important;
}

#floating-icon2 {
    position: fixed;
    bottom: 16px;
    right: 20px;
    z-index: 1000;
}

#floating-icon2 a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: #0056a7; /* azul */
    color: #fff; /* Cor do ícone */
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
}

#floating-icon2 a:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
    background-color: #0048a7; /* Cor ao passar o rato */
}

#floating-icon2 i {
    font-size: 24px; /* Tamanho do ícone */
}

/* TESTES */
#tts__listent_content_1 {
    display: none; /* Esconde o player */
}

#mostrar-player {
    display: block;
    color: #0073aa;
    font-size: 48px;
    cursor: pointer;
    margin: 10px 0;
}

#mostrar-player:hover {
    color: #005177;
}

div.plyr__controls__item:nth-child(6) > button:nth-child(1) {
display: none;
}
a.plyr__controls__item {
	display: none;
}

.plyr--audio {
    border-radius: 8px;	
}

.plyr--audio .plyr__controls {
	background-color: #252932 !important;
}

.plyr--audio .plyr__control.plyr__tab-focus, .plyr--audio .plyr__control, .plyr--audio .plyr__control:hover, .plyr--audio .plyr__control[aria-expanded="true"] {
  background-color: #252932 !important;
  color: #ffffff;
}

.tts__custom-position_bottom_left {
	left: 15px !important;
	bottom: 15px !important;
}

@media (max-width: 575.98px) {
  .tts__custom-position_bottom_left {
    width: 170px !important;
  }
}

.fa-universal-access::before {
  background-color: white;
  border-radius: 30px;
}

.plyr--audio {
    z-index: 99998 !important;
}

@media (max-width: 575.98px) {
div#audio_time_end_1 {
    display: none;
  }
.tts__audio-progress {
       display: none;
  }  
.tts__audio-controls {
    align-items: flex-start !important;
  }
.tts__ps-3 {
        display: none !important;
    }  
}

