/*
Theme Name: Grafco
Theme URI: http://themeforest.net/user/wpoceans/
Author: wpoceans
Author URI: http://themeforest.net/user/wpoceans/portfolio
Description: Grafco - Event & Conference WordPress Theme
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: grafco
Tags: one-column, two-columns, left-sidebar, right-sidebar, custom-menu, featured-images, post-formats, theme-options, translation-ready
*/


/*--------------------------------------------------------------
# Alignments
--------------------------------------------------------------*/

.alignleft {
    display: inline;
    float: left;
    margin-right: 1.5em;
}

.alignright {
    display: inline;
    float: right;
    margin-left: 1.5em;
}

.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
}


/*--------------------------------------------------------------
# Clearings
--------------------------------------------------------------*/

.clear:before,
.clear:after,
.entry-content:before,
.entry-content:after,
.comment-content:before,
.comment-content:after,
.site-header:before,
.site-header:after,
.site-content:before,
.site-content:after {
    content: "";
    display: table;
    table-layout: fixed;
}

.clear:after,
.entry-content:after,
.comment-content:after,
.site-header:after,
.site-content:after,
.site-footer:after {
    clear: both;
}


/* Make sure embeds and iframes fit their containers. */

embed,
iframe,
object {
    max-width: 100%;
}


/* By Authot Post */

.bypostauthor {
    display: inline-block;
}


/*--------------------------------------------------------------
## Captions
--------------------------------------------------------------*/

.wp-caption {
    margin-bottom: 1.5em;
    max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption .wp-caption-text {
    margin: 0.8075em 0;
}

.wp-caption-text {
    text-align: center;
}


/*--------------------------------------------------------------
## Galleries
--------------------------------------------------------------*/

.gallery {
    margin-bottom: 1.5em;
    margin-right: -15px;
}

.gallery-item {
    display: inline-block;
    text-align: center;
    vertical-align: top;
    width: 100%;
    padding-right: 15px;
}
.gallery-item {
  padding-bottom: 15px;
}
.gallery-columns-2 .gallery-item {
    max-width: 50%;
}

.gallery-columns-3 .gallery-item {
    max-width: 33.33%;
}

.gallery-columns-4 .gallery-item {
    max-width: 25%;
}

.gallery-columns-5 .gallery-item {
    max-width: 20%;
}

.gallery-columns-6 .gallery-item {
    max-width: 16.66%;
}

.gallery-columns-7 .gallery-item {
    max-width: 14.28%;
}

.gallery-columns-8 .gallery-item {
    max-width: 12.5%;
}

.gallery-columns-9 .gallery-item {
    max-width: 11.11%;
}

.gallery-caption {
    display: block;
}

.screen-reader-text {
    background: transparent;
    display: none;
}

select {
    padding: 3px 12px;
    width: 60px;
    border-radius: 6px;
    border: 1px solid #ccc;
}



body:not(.home) .elementor-element-2c27702 {
	background-color: #264796 !important;
}


body:not(.home)::after {
    content: "";
    position: fixed;
    top: 0;
    right: 0;
    width: 50%; /* ширина области с фоном */
    height: 100%;
    background: url('https://pharmacon.uz/bgg.png') no-repeat right center;
    background-size: auto 75%;
    opacity: 0.1; /* прозрачность от 0 до 1 */
    pointer-events: none; /* чтобы не мешала кликам */
    z-index: -1; /* чтобы была под контентом */
}


#meds-table {
    width: 100%;
    border-collapse: collapse;
    font-family: "Segoe UI", sans-serif;
    font-size: 15px;
    color: #333;
}

#meds-table thead {
    background-color: #264796;
    color: #fff;
}

#meds-table th,
#meds-table td {
    border: 1px solid #ccc;
    padding: 8px 10px;
    text-align: center;
    vertical-align: middle;
}

#meds-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

#meds-table tbody tr:hover {
    background-color: #eef2fa;
}

/* Фото в таблице */
#meds-table img {
    width: 110px;
    height: auto;
    object-fit: cover;
    cursor: zoom-in;
    border-radius: 4px;
    transition: transform 0.2s ease;
}

#meds-table img:hover {
    transform: scale(1.05);
}

.dataTables_length{ margin: 0 0 15px 0; }
