	
.fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 10px 0;
}

.fixed-header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.languages-fixed {
  display: flex;
  align-items: center;
  gap: 15px;
}

.languages-fixed a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  font-size: 14px;
  padding: 5px 8px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.languages-fixed a:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.languages-fixed img {
  width: 20px;
  height: auto;
  margin-right: 5px;
  border-radius: 3px;
}

.navbar-fixed {
  display: flex;
  align-items: center;
}

.navbar-fixed ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 20px;
}

.navbar-fixed ul li a {
  text-decoration: none;
  color: #333;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.navbar-fixed ul li a:hover,
.navbar-fixed ul li a.active {
  background: #007bff;
  color: white;
}

.mobile-nav-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}

@media (max-width: 768px) {
  .navbar-fixed ul {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: none;
    gap: 10px;
  }

  .navbar-fixed ul.show {
    display: flex;
  }

  .mobile-nav-toggle {
    display: block;
    margin-right: 10px;
  }

  .languages-fixed {
    gap: 10px;
  }

  .languages-fixed a {
    font-size: 12px;
    padding: 3px 6px;
  }

  .languages-fixed img {
    width: 16px;
  }
}


        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Roboto', sans-serif;
            background-color: #f9f6ee;
            color: white;
            min-height: 100vh;
            padding: 20px 0;
        }

        .container {
            max-width: 600px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .main-image {
            width: 100%;
            max-width: 600px;
            border-radius: 16px;
            margin-bottom: 30px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
            display: block;
            margin-left: auto;
            margin-right: auto;
        }

        .related-content-section {
            background: white;
            border-radius: 20px;
            padding: 0;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
            overflow: hidden;
            transition: all 0.3s ease;
            max-width: 600px;
            margin: 0 auto;
        }

        .related-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 20px 25px;
            cursor: pointer;
            background: white;
            color: #333;
            border-radius: 20px;
            transition: all 0.3s ease;
        }

        .related-header:hover {
            background: #f8f9fa;
        }

        .related-title {
            display: flex;
            align-items: center;
            font-size: 18px;
            font-weight: 500;
        }

        .grid-icon {
            margin-right: 12px;
            width: 24px;
            height: 24px;
        }

        .expand-arrow {
            width: 40px;
            height: 40px;
            border: 2px solid #e5e7eb;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            background: white;
        }

        .expand-arrow.expanded {
            transform: rotate(180deg);
            background: #f3f4f6;
        }

        .arrow-icon {
            width: 16px;
            height: 16px;
            transition: transform 0.3s ease;
        }

        .related-items {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.4s ease, padding 0.3s ease;
            background: white;
        }

        .related-items.expanded {
            max-height: 2000px;
            padding: 0 25px 25px;
        }

        /* Grid Layout */
        .image-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
            padding: 20px 0;
        }

        .grid-item {
            position: relative;
            aspect-ratio: 4/3;
            border-radius: 12px;
            overflow: hidden;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }

        .grid-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
        }

        .grid-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }

        .grid-item:hover .grid-image {
            transform: scale(1.05);
        }

        .image-overlay {
            position: absolute;
            inset: 0;
            background: rgba(0, 0, 0, 0.3);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .grid-item:hover .image-overlay {
            opacity: 1;
        }

        .view-icon {
            font-size: 24px;
            color: white;
            background: rgba(255, 255, 255, 0.2);
            padding: 10px;
            border-radius: 50%;
            backdrop-filter: blur(10px);
        }

        /* Modal Styles para Imagens */
        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.9);
            backdrop-filter: blur(5px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }

        .modal-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        
		/*.modal-content {
            position: relative;
            max-width: 90vw;
            max-height: 90vh;
            background: white;
            border-radius: 20px;
            overflow: hidden;
            transform: scale(0.8);
            transition: transform 0.3s ease;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        }*/

        .modal-overlay.active .modal-content {
            transform: scale(1);
        }

        .modal-close {
            position: absolute;
            top: 15px;
            right: 15px;
            width: 40px;
            height: 40px;
            background: rgba(0, 0, 0, 0.5);
            color: white;
            border: none;
            border-radius: 50%;
            font-size: 20px;
            cursor: pointer;
            z-index: 1001;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s ease;
        }

        .modal-close:hover {
            background: rgba(0, 0, 0, 0.7);
        }

        /*.modal-image-container {
            position: relative;
            max-height: 70vh;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #f5f5f5;
        }
		
        .modal-image {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            transition: opacity 0.3s ease;
        }
		*/
		
		
		/* alteração: */
		
		.modal-content {
    max-width: 95vw;
    max-height: 95vh;
}

.modal-image-container {
    max-height: 95vh;
    width: auto;
}

.modal-image {
    width: auto;
    height: auto;
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
}

		
		     /* fim da alteração */
		
		
        .image-loading {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            color: #666;
            background: #f5f5f5;
        }

        .modal-info {
            padding: 20px;
            background: white;
        }

        .modal-info h3 {
            margin: 0 0 10px 0;
            color: #333;
            font-size: 20px;
        }

        .modal-info p {
            margin: 0;
            color: #666;
            line-height: 1.5;
        }

        .modal-navigation {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 100%;
            display: flex;
            justify-content: space-between;
            padding: 0 20px;
            pointer-events: none;
        }

        .nav-button {
            width: 50px;
            height: 50px;
            background: rgba(0, 0, 0, 0.5);
            color: white;
            border: none;
            border-radius: 50%;
            font-size: 20px;
            cursor: pointer;
            pointer-events: all;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }

        .nav-button:hover {
            background: rgba(0, 0, 0, 0.7);
            transform: scale(1.1);
        }

        .nav-button:disabled {
            opacity: 0.3;
            cursor: not-allowed;
        }

        .loading {
            text-align: center;
            padding: 40px;
            color: #6b7280;
        }

        .no-content {
            text-align: center;
            padding: 40px;
            color: #6b7280;
            font-style: italic;
        }

        /* CSS PARA POP UP DO TEXTO */
        .text-preview-section {
            background: white;
            border-radius: 16px;
            padding: 25px;
            margin-bottom: 30px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
            margin-bottom: 30px;
        }

        .text-title {
            color: #333;
            font-size: 24px;
            font-weight: 600;
            margin-bottom: 15px;
            line-height: 1.3;
        }

        .text-preview {
            color: #666;
            font-size: 16px;
            line-height: 1.6;
            margin: 0;
        }

        .read-more-btn {
            color: #667eea;
            font-weight: 600;
            cursor: pointer;
            text-decoration: underline;
            transition: color 0.2s ease;
            margin-left: 5px;
        }

        .read-more-btn:hover {
            color: #5a67d8;
        }

        /* Modal para texto completo */
        .text-modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(5px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10001;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            padding: 20px;
        }

        .text-modal-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .text-modal-content {
            background: white;
            border-radius: 20px;
            max-width: 800px;
            max-height: 90vh;
            width: 100%;
            overflow: hidden;
            transform: scale(0.9);
            transition: transform 0.3s ease;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            position: relative;
        }

        .text-modal-overlay.active .text-modal-content {
            transform: scale(1);
        }

        .text-modal-close {
            position: absolute;
            top: 20px;
            right: 20px;
            width: 40px;
            height: 40px;
            background: #f5f5f5;
            color: #666;
            border: none;
            border-radius: 50%;
            font-size: 20px;
            cursor: pointer;
            z-index: 1002;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }

        .text-modal-close:hover {
            background: #e5e5e5;
            color: #333;
        }

        .text-modal-body {
            padding: 40px;
            overflow-y: auto;
            max-height: 90vh;
        }

        .text-modal-body h2 {
            color: #333;
            font-size: 28px;
            font-weight: 600;
            margin-bottom: 25px;
            line-height: 1.3;
        }

        .text-modal-body h3 {
            color: #333;
            font-size: 20px;
            font-weight: 600;
            margin: 30px 0 15px 0;
            line-height: 1.4;
        }

        .text-full-content p {
            color: #555;
            font-size: 16px;
            line-height: 1.7;
            margin-bottom: 20px;
        }

        .text-full-content ul {
            color: #555;
            font-size: 16px;
            line-height: 1.7;
            margin: 15px 0 20px 20px;
        }

        .text-full-content li {
            margin-bottom: 8px;
        }

        /* Scrollbar personalizada para o modal */
        .text-modal-body::-webkit-scrollbar {
            width: 8px;
        }

        .text-modal-body::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 4px;
        }

        .text-modal-body::-webkit-scrollbar-thumb {
            background: #c1c1c1;
            border-radius: 4px;
        }

        .text-modal-body::-webkit-scrollbar-thumb:hover {
            background: #a8a8a8;
        }

        /* Responsive Design */
        @media (min-width: 768px) {
            .image-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 20px;
            }
        }

        @media (max-width: 480px) {
            .container {
                padding: 0 15px;
            }
            
            .related-header {
                padding: 18px 20px;
            }
            
            .related-items.expanded {
                padding: 0 20px 20px;
            }
            
            .related-title {
                font-size: 16px;
            }

            .text-preview-section {
                margin: 0 0 20px 0;
                padding: 20px;
                border-radius: 12px;
            }
            
            .text-title {
                font-size: 20px;
            }
            
            .text-preview {
                font-size: 14px;
            }
            
            .text-modal-body {
                padding: 30px 25px;
            }
            
            .text-modal-body h2 {
                font-size: 24px;
            }
            
            .text-modal-body h3 {
                font-size: 18px;
            }
            
            .text-full-content p,
            .text-full-content ul {
                font-size: 15px;
            }

            .text-modal-overlay {
                padding: 10px;
            }
            
            .text-modal-close {
                top: 15px;
                right: 15px;
                width: 35px;
                height: 35px;
                font-size: 18px;
            }
        }